elfking
09-06-2002, 08:46 PM
Hey there all, I have setup a machine with samba etc. im trying to figure out the command I need in smb.conf to make it so when one user logs on they see, say folder "Art" for the art user... and when "Programmer" logs in they see folder "programmer stuff" under the PDC/machine i have set up. I don't want "Art" user to see "Programmer" 's folder and vise versa... Im pretty sure its something easy but... im a noobie here. I'll put my smb.conf below incase i made a mistake of course. =D Thanks all
-------------------------------------
# My fantastic smb.conf file.
[global]
...
add user script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u
...
workgroup = linuxrealm
netbios name = Chrono
server string = Samba PDC %v
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
os level = 64
preferred master = yes
local master = yes
domain master = yes
security = user
encrypt passwords = yes
domain logons = yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 50
hosts allow = 192.168.1.
#Below is for roaming profiles.
# logon home = \\%l\%U\.profile
# logon drive = H:
# logon path = \\%L\profiles\%U
# *** Below script will execute every time someone logs onto the PDC
# logon script = netlogon.bat
#Shares (Linux to Windows)
# *** Need to uncommment below for logon script to work.
# [netlogon]
# path = /home/netlogon
# read only = yes
# write list = @admin
[homes]
comment = %u 's Home Directory
browseable = no
writeable = yes
[profiles]
path = /home/samba/profiles
writeable = yes
browsable = no
create mask = 0600
directory mask = 0700
public = no
[Public Folder]
path = /home/stuff
writeable = true
comment = This is a folder that everyone on the domain can see and play
with.
[art files]
path = /home/art
writeable = true
browsable = no
valid user = @artists
comment = This is a folder that only artists can see.
[programmers only]
path = /home/progstuff
writeable = true
browsable = no
valid user = @programmers
comment = This is a folder that only programmers can see.
-------------------------------------
# My fantastic smb.conf file.
[global]
...
add user script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u
...
workgroup = linuxrealm
netbios name = Chrono
server string = Samba PDC %v
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
os level = 64
preferred master = yes
local master = yes
domain master = yes
security = user
encrypt passwords = yes
domain logons = yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 50
hosts allow = 192.168.1.
#Below is for roaming profiles.
# logon home = \\%l\%U\.profile
# logon drive = H:
# logon path = \\%L\profiles\%U
# *** Below script will execute every time someone logs onto the PDC
# logon script = netlogon.bat
#Shares (Linux to Windows)
# *** Need to uncommment below for logon script to work.
# [netlogon]
# path = /home/netlogon
# read only = yes
# write list = @admin
[homes]
comment = %u 's Home Directory
browseable = no
writeable = yes
[profiles]
path = /home/samba/profiles
writeable = yes
browsable = no
create mask = 0600
directory mask = 0700
public = no
[Public Folder]
path = /home/stuff
writeable = true
comment = This is a folder that everyone on the domain can see and play
with.
[art files]
path = /home/art
writeable = true
browsable = no
valid user = @artists
comment = This is a folder that only artists can see.
[programmers only]
path = /home/progstuff
writeable = true
browsable = no
valid user = @programmers
comment = This is a folder that only programmers can see.