Results 1 to 4 of 4
Trying to set up a proper Samba directory structure
Hi all, first time poster long time reader.
Here is my set-up:
I'm running samba version Version 3.0.33. My smb.conf file ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-11-2010 #1Just Joined!
- Join Date
- Aug 2010
- Posts
- 2
Trying to set up a proper Samba directory structure
Trying to set up a proper Samba directory structure
Hi all, first time poster long time reader.
Here is my set-up:
I'm running samba version Version 3.0.33. My smb.conf file looks like this -- names have been omitted to protect the innocent.
[global]
workgroup = workgroup
netbios name = smbserver
security = user
load printers = No
default service = global
path = /share
username map = /etc/samba/smbusers
[share]
writeable = yes
admin users = user1 user2
path = /share/share
force user = root
valid users = user1 user2
public = yes
; available = yes
[user1]
writeable = yes
admin users = user1
path = /share/users/user1
force user = root
valid users = user1
public = yes
; available = yes
[user2]
writeable = yes
admin users = user2
path = /share/users/user2
force user = root
valid users = user
public = yes
; available = yes
The problem is this... When I first log into the smbserver, I see 3 things; share, user1, user2. What I want to see is share and users and make that users directory split off into all my named users. It's these directories (share/users/user1, share/users/user2, etc....) that I want to see in my directory structure when I log in. Any help would be greatly appreciated.
- 08-11-2010 #2Linux User
- Join Date
- Dec 2009
- Posts
- 255
I don't know if that is what you are looking for ...
But you don't need to set an share for every user.
An example would be:
This should create an share called home[home]
comment = Homedrive
path = /share/users/%U
read only = No
create mask = 0644
directory mask = 0775
browseable = Yes
Depending on the user name the share will show a different directory.
If you call the share [homes] the share should be shown as the user-name.
- 08-12-2010 #3Just Joined!
- Join Date
- Aug 2010
- Posts
- 2
That looks like it will work for all my users. I still have the problem of ever single user appears when I first open up the smbserver on a network. I see a list of
share
user1
user2
user3
etc.....
How do i configure samba so that instead I see
share
users
and under users I have all my user accounts?
- 08-12-2010 #4Linux User
- Join Date
- Dec 2009
- Posts
- 255
?![global]
workgroup = workgroup
netbios name = smbserver
security = user
load printers = No
default service = global
path = /share
username map = /etc/samba/smbusers
[share]
writeable = yes
admin users = user1 user2
path = /share/share
force user = root
valid users = user1 user2
public = yes
; available = yes
[user]
writeable = yes
path = /share/users
force user = root
public = yes
; available = yes
create mask = 0600
directory mask = 0700
You can set the user-rights in the file-system.
# chmod -R 700 /share/users/
# chmod 744 /share/users


Reply With Quote
