Page 1 of 1

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

Posted: 23 Oct 2008, 09:38
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

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

Posted: 25 Oct 2008, 09:31
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

Posted: 25 Oct 2008, 11:48
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

Posted: 30 Oct 2008, 04:45
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

Posted: 30 Oct 2008, 06:26
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

Posted: 30 Oct 2008, 06:28
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.

Posted: 30 Oct 2008, 06:42
by Eek
So the H drive is in use

Posted: 30 Oct 2008, 08:30
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!

Posted: 30 Oct 2008, 10:54
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

Posted: 30 Oct 2008, 14:02
by Eek
:lol:

try

Code: Select all

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