New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

How can i make a folder with is accasible only for users

Got problems with your B2 or B3? Share and get helped!
Post Reply
Puma
Posts: 230
Joined: 29 Sep 2008, 06:30

How can i make a folder with is accasible only for users

Post by Puma »

Hello,

The storage folder with music/pictures/video and external mouted drives are for everyone visible if i am correct...?

I would like to have a folder photos and video which is only accessible for certain windows users. (they have there own inlog name and password in XP).

For security reasons isn't it better to log in via explorer for the storage folder and external disks???

puma
rewien
Posts: 127
Joined: 27 Sep 2008, 18:10

Re: How can i make a folder with is accasible only for users

Post by rewien »

Puma wrote:Hello,

The storage folder with music/pictures/video and external mouted drives are for everyone visible if i am correct...?

I would like to have a folder photos and video which is only accessible for certain windows users. (they have there own inlog name and password in XP).

For security reasons isn't it better to log in via explorer for the storage folder and external disks???

puma
I'm looking for the same thing. how can i make a folder only accesable for users and not for everyone.

Rewien
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

Hi
You have to change the settings in the samba configuration.
If you open /etc/samba/smb.conf in an editor
you will see
[home]
comment = Home Directories
path = /home
browseable = yes
writable = yes
create mask = 0764
directory mask = 0775
public = no
guest ok = no

hide dotfiles = yes
user = @users

[storage]
comment = Common storage
writable = yes
guest ok = yes
public = yes

force group = users
force create mode= 0777
force directory mode = 0777
path = /home/storage
//bubba/storage does not require a login
//bubba/home does

see also http://forum.excito.net/viewtopic.php?t ... t=smb+conf

cheers
Eek
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

Post by Hammer »

Thanks Eek!

However, this begs a follow-up question: why can't I map a network drive to my home directory, i.e. \\bubba\hammer to H:?

I can without problem map \\bubba\storage to T:, why not above?

Cheers,
Hammer
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

Hi

that probably has something to do with windows.
what do you get when you do on you PC

Code: Select all

net use
or maybe some usb device claimed the driveletter
check with Computer Management, Disk Management or Disk Defragmenter what drive letters are in use.

cheers Eek
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

Post by Hammer »

Status Local Remote Network

-------------------------------------------------------------------------------
Unavailable B: \\bubba1\storage Microsoft Windows Network
OK H: \\htpc\htpc_Download Microsoft Windows Network
T: \\bubba2\storage Microsoft Windows Network
\\bubba2\storage Microsoft Windows Network
The command completed successfully.


The server bubba2 has another host name, which I didn't want to share. It is however the new Bubba.
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

So the H drive is in use
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

Post by Hammer »

Ah, I see what you are after, no, I didnt want to use an occupied mapping. The actual drive letter I tried using was S.

The H was just an example of what I wanted to do.

Thanks though!
pa
Posts: 308
Joined: 06 Dec 2006, 04:38
Location: Sweden
Contact:

Post by pa »

I do not know if this is how you try to do it, but in order to connect to "subfolders", ie \\bubba\home\hammer, of the share (\\bubba\home is the share for home-directories), at least on my XP machine I need to use "Tools->Map network Drive" and type \\bubba\home\hammer. Just right clicking on the folder does not work, that only works for the top share, ie \\bubba\home.

Also, if you have mapped once with a username, windows will try to use that name to map any other resources of the same server, it will not allow you to mount storage as the user "test" and the home-share as the user "hammer".

/PA
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

:lol:

try

Code: Select all

net use S: \\bubba2\home\hammer <password> /USER:hammer /PERSISTENT:YES
cheers
Eek
Post Reply