View Full Version : [ubuntu] Ubuntu 9.04 server edition samba problems
Msingh
July 1st, 2009, 02:17 AM
I want to make my folder and my brothers' folders invisible and have a public folder accessible to all. If i'm not clear enough, I want each user only able to see their own folder, and the public folder, and guests only allowed to see the public folder.
here is an example of one of the folders in my samba.conf.master file:
[*username*]
comment = *username*'s server
path = /home/*username*
browsable = yes
guest ok = no
read only = no
writeable = yes
valid users = *username*
write list = *username*
create mask = 0755
I tried making them not browsable, but then the user couldn't see his own folder.... please help!
Avinash.Rao
July 1st, 2009, 03:05 AM
Msingh,
The share name is the brackets should be [home] which simply means the home directory, and not username. When the [home] share is mentioned any user logging into the samba domain will have their respective home directories mapped as a network drive. And, the home directory should be in /home/username
Hope this helps.
swerdna
July 1st, 2009, 06:59 AM
For the public share:
[share_name]
path = /path_to/shared_directory
read only = no
force user = a_user
guest ok = yes
Chown the shared directory to ownership a_user:a_user and chmod the directory to 755 with:
chmod 755 /path_to/shared_directory
chown -R a_user:a_user /path_to/shared_directory
For the private shares:
[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
inherit acls = Yes
This share allows access with full read/write permissions to users logged onto either Windows or Linux clients on the LAN. You need to supply your Linux username and Samba password to access the share. It's called "roaming" because you can roam around the LAN and access your home on the server from all computers.
In Windows you can sometimes see the share as an icon named for your Linux username. Whether you see the icon depends on your transaction history with the server earlier that session. If you can see it, drill down into the share. If you can't see it then use an address like this in the Windows network browser: \\server_name\linux_username. Users logged onto other computers with usernames different from the Linux owners of the shares can't see the shares.
Avinash.Rao
July 1st, 2009, 11:21 PM
Bingo!
swerdna
July 2nd, 2009, 01:27 AM
Bingo!
My Grandmother gets a prize when she hears that. What about us........?
Avinash.Rao
July 2nd, 2009, 07:34 AM
:guitar::lolflag:
I meant to say that the explanation was good and correct.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.