Help - Search - Members - Calendar
Full Version: Samba Nightmare!
Linuxhelp > Support > Technical Support

I have mounted a network drive as root using the command :
mount -t smbfs -o username=administrator,password=neilofcov //norlabackup/linuxshare /mnt/data

All of the data on the network drive is now accessible in the /mnt/data folder and can be edited etc by root. I then set up a SAMBA share for this directory. I can map the directory to my windows xp pc fine but only have read access permission. I've tried chmod 777 data but this give the error - chmod: changing permissions of `data' (requested: 0777, actual: 0755): Operation not permitted.

I've pasted my smb.conf file into the next post as this one is too long.

Any help to get write access to this would be appreciated.

Many Thanks,


# Samba config file created using SWAT
# from NORLA-SPARK (
# Date: 2004/05/06 15:44:17

# Global parameters
server string = samba server
security = SHARE
encrypt passwords = Yes
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %nn *Retype*new*password* %nn *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
directory mask = 0777
force directory mode = 0777
guest ok = Yes
printing = cups

comment = Home Directories
valid users = %S
read only = No
create mask = 0777

comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

comment = Norla Spark
path = /usr/local/spark
read only = No

comment = norla data
path = /mnt/data
read only = no
Before you mount, make sure the directory is set to 777 ... once you mount, you can't change permissions.

use this instead:

mount -t smbfs -o username=administrator,password=neilofcov,dmask=777,fmask=777 //norlabackup/linuxshare /mnt/data

see man smbmount for other mount options like uid, gid
Thank hughesjr biggrin.gif It's working fine now.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.