Code:
root@NETDRIVE:/mnt ls -l
total 9
drwxr-xr-x 10 root root hda
drwxrwxrwx 4 root root info
drwxrwxrwx 4 root root ram
drwxrwxrwx 4 root root usbdisk1
drwxrwxrwx 4 root root usbdisk2
drwxrwxrwx 4 root root usbinfo
root@NETDRIVE:/mnt/hda# ls -l
total 44
drwxrwxrwx 7 root root <share1>
drwxrwxrwx 4 root root <share2>
drwxrwxrwx 8 root root <share3>
drwxrwxrwx 5 root root <share4>
drwx----- 2 root root lost+found
drwxrwxrwx 12 root root <share6>
drwxrwxrwx 6 root root spool
drwxrwxrwx 2 root root <share8>
each files/dirs under each share are owned by the user and the usergroup: hdusers
i.e. all files in share1 are
-rwxrwxrwx user1 hdusers
all dirs under share1 are
drwxrwxrwx user1 hdusers
Apache user: httpd
Apache group: httpd
The samba config is setup so that each user has access to his and only his share. i.e. Alice only has access to share1 and no else (but me, the administrator) has access to her share. Here's my samba config file (with users and sharenames changed; also in this config, user "Jack" is an administrator:
Code:
[global]
client code page = 437
workgroup = HOME
server string = Network Storage
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
dns proxy = No
netbios name = NETDRIVE
os level = 1
wins server =
security = user
encrypt passwords = Yes
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*s
uccessfully*
unix password sync = yes
guest account = nobody
null passwords = yes
guest only = no
username level = 12
password level = 8
map to guest = Bad User
browsable = no
preserve case = yes
short preserve case = yes
veto files = /.AppleDesktop/Network Trash Folder/TheVolumeSettingsFolder/.AppleDouble/.AppleDB/
delete veto files = yes
invalid users = mail, deamon, adt
admin users = root
username map = /etc/samba/smbusers
getwd cache = yes
printcap name = /etc/printcap
load printers = yes
printing = lprng
[lp]
comment = Network Printer for Windows
path = /mnt/hda/spool/samba
print command = /usr/bin/lpr -Plp -r %s
printer admin = root
browsable = yes
printable = yes
public = yes
###lpr-win###
[info]
comment = LinkStation information
path = /mnt/info
browsable = yes
printable = no
writable = no
guest ok = yes
###info###
[alice]
comment = Alice-Net
path = /mnt/hda/alice
browsable = yes
printable = no
writable = yes
valid users = Administrator,Alice,Jack,
force create mode = 777
force directory mode = 777
vfs object = /usr/lib/samba/recycle.so
vfs options = /etc/samba/recycle.conf
###alice###
[brandon]
comment = Brandon-Net
path = /mnt/hda/brandon
browsable = yes
printable = no
writable = yes
valid users = Administrator,Brandon,Jack
force create mode = 777
force directory mode = 777
###brandon###
[collin]
comment = Collin-Net
path = /mnt/hda/collin
browsable = yes
printable = no
writable = yes
valid users = Administrator,Collin,Jack,
force create mode = 777
force directory mode = 777
###collin###
[dave]
comment = Dave-Net
path = /mnt/hda/dave
browsable = yes
printable = no
writable = yes
valid users = Administrator,Dave,Jack,
force create mode = 777
force directory mode = 777
###dave###
[erin]
comment = Erin-Net
path = /mnt/hda/erin
browsable = yes
printable = no
writable = yes
valid users = Administrator,Erin,Jack,
force create mode = 777
force directory mode = 777
vfs object = /usr/lib/samba/recycle.so
vfs options = /etc/samba/recycle.conf
###erin###
[jack]
comment = Jack-Net
path = /mnt/hda/jack
browsable = yes
printable = no
writable = yes
valid users = Administrator,Jack,
force create mode = 777
force directory mode = 777
vfs object = /usr/lib/samba/recycle.so
vfs options = /etc/samba/recycle.conf
###jack###
#####END#####
I'm not sure if else you want know (i.e. more directives from httpd.conf, login.defs, etc.), just let me know.
Any other commands (i.e. grep) you want me to run and post?
Thanks