Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, I hope someone can help.
I've setup a simple samba server to share two folders /home/username/, one for me and one for my GF.
I've managed to get it all setup and working fine from windows, I can log into my share, read and write etc but not my GF's and vice versa.
The problem is when I mount the share in Xandros
For someone reason the share mounts fine but I only have RW access to the root folder, I can delete any file or folder there, but if I create a folder, then try to create something inside that folder I can't as the permissions won't allow it, however if browse the share as root I have full access.., what gives??I've running Xandros 3.0 as my client and Mandrake 10.1 as the Samba server.
I have the same username and password setup on both Xandros and Samba, and like I said I have no problems with RW from windows, just Linux.
Any help would be greatly appreciated as I'm considering setting up a win2k server instead. which I would rather not do.

Its look like you have Problem with Samba configuration. in configuration you have option to set folder mask which set the permessions on the new file or folder, just like the "umask". your configuration may setting the permession on new File or Folder to 'read only'. check them or send me your configuration file. so I could see where the problem is. or mail me to send you a configured file for your setting.

here's my server smb.conf
[global]
workgroup = CYBERTRON
netbios name = TELETRAN3
encrypt passwords = yes
security = user
os level = 65
preferred master = yes
local master = yes[james]
path = /home/james/
browseable = yes
public = yes
write list = james
writeable = yes
preserve permissions = yesLike I said I can read and write from winXP, or as root on the Linux client, but if I use a normal user I can create files and folders in the root of the share but if I try to create something in one of the folders I have no access to do so (unless browsing as root)
I should meantion /home is a seperate partition on the samba server, it's an XFS partition and the permissions are set to 757 owner is james (same as user trying to access)
This is driving me insane, any help is greatly appreaciated!
I've set file mask to 777 in the samba config file and even that made no difference, I can't think of anything else to try :(
Except to ditch Samba and install w2k3 which I REALLY don't want to do.
Thanks.

"...I've set file mask to 777 in the samba config file..."
Hmmm....I can't see it in the smb.conf you posted above. Make sure that you have something like the following in there:
create mask = 0664
directory mask = 0775
That should give read/write access to the owner and group and read access for everyone else. Just make sure that your girlfriend is a member of the correct group.

What I mean was, I HAD set the file mask etc etc in the samba config file, but removed as it had no effect.

the thing is I DO have FULL rw access to the share, and CAN write stuff, and delete files I create, but if I create a folder, I can delete it, but the permissions the THAT folder won't let me put anything in, even with file mask set in the samba config file, it's as if the XFS filesystem on the server is overiding the samba permissions. However that makes no sense as the file permissions the actual folder on the server are different to how the share comes up on the Linux client, plus I can do anything I want to the share on windows.

Here's the client smb.conf if that makes any different, I have mounted the share with LinNieghborhood and set file mask to, 757, 777.. No Luck
[global]
workgroup=CYBERTRON
server string=%h server (Samba %v)
dns proxy=no
security=user
encrypt passwords=true
preserve case=yes
case sensitive=no
os level=20

FIXED woohoo!!!!
inherit permissions = yes
rather than
'preserve' premissions=yesThanks anyway guys!!!
anything I should change to be more secure?
[global]
workgroup = CYBERTRON
netbios name = TELETRAN3
encrypt passwords = yes
security = user
os level = 65
preferred master = yes
local master = yes[james]
path = /home/james/
browseable = yes
public = yes ??
write list = james
writeable = yes
inherit permissions = yes

If it helps here's the smb.conf from one of my servers. Make sure you have both create and directory masks:
[global]
workgroup = SWCC
server string = Samba Server
netbios name = FileAndPrint
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192os level = 64
preferred master = yes
local master = yes
domain master = yes
wins support = yessecurity = user
encrypt passwords = yes
domain logons = yes
log file = /var/log/samba/%m.log
log level = 2
max log size = 50
syslog = 1
# hosts allow = 127.0.0.1 192.168.0.0/255.255.255.0
create mask = 0664
directory mask = 0775#domain admin users = root
logon script = logon.bat
logon path = \\%L\profiles\%U
logon drive = H:add machine script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false u%
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *Enter*new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd: *all*authentication*tokens*updated*successfully*
smb passwd file = /etc/samba/private/smbpasswd#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes[profiles]
path = /mnt/data/profiles
writable = yes
browseable = yes
public = no[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
read only = yes[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
guest ok = yes
writable = yes
printable = yes[public]
comment = Public Stuff
path = /mnt/data/public
public = yes
writable = yes
printable = no
create mask = 0664
directory mask = 0775[users]
comment = User Folders
path = /mnt/data/users
public = no
writable = yes
printable = no
create mask = 0664
directory mask = 0775[ftp]
comment = User Folders
path = /mnt/data/ftp
public = no
writable = yes
printable = no
create mask = 0664
directory mask = 0775[accounts]
comment = Accounts
path = /mnt/data/accounts
public = no
writable = yes
printable = no
create mask = 0664
directory mask = 0775
write list = robincarr[line50]
comment = Accounts
path = /mnt/data/accounts/Line50
public = no
writable = yes
printable = no
create mask = 0664
directory mask = 0775
write list = robincarr[holidays]
path = /mnt/data/holidays
public = no
public = no
writable = yes
printable = no
create mask = 0644
directory mask = 0755[root]
comment = Filesystem root
path = /
writeable = no

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |