fstab mounting cifs voumes in file_mode=755 / readonly , needs to be readwrite
by gregorywest from LinuxQuestions.org on (#4VASS)
I have a samba server on one centos box. This is being used as a storage area for fines. Connecting to it are a Mac and another Centos box.
The problem I am having is both the Mac and the Centos WS have the mounts as read only. I have tried everything I can think of to fix the issue but keep coming up read only.
Any help, point in the right direction would be awesome.
Greg
For reference the server smb.conf is:
Code:# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
log file = /var/log/samba/log.%m
hosts allow = 192.168. 0.
passdb backend = tdbsam
netbios name = mindhole
netbios aliases = mindhole
server string = SambaServer
logon script = logon.bat
workgroup = GROUPTHINK
logon path = \\%L\Profiles\%U
security = user
syslog = 0
create mode = 777
add machine script = /usr/sbin/useradd -d /dev/null -g 200 -s /sbin/nologin -M %u
max log size = 1000
directory mode = 777
#==================================== Share Definitions ===============================
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[Profiles]
path = /var/lib/samba/profiles
create mask = 0777
directory mask = 0777
writable = Yes
[users]
path = /samba/users
browseable = yes
read only = no
force create mode = 0666
force directory mode = 2664
valid users = @sambashare @sadmin
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
browseable = No
[archives]
comment = Archive Area
path = /srvnfs/archives
browsable = yes
writeable = yes
create mode = 0664
public = yes
directory mode = 0664
guest ok = yes
[working]
writeable = yes
delete readonly = yes
path = /srvnfs/working
force directory mode = 664
force create mode = 664
create mode = 664
public = yes
directory mode = 664
write list = scatterbrainz, root
[reference]
writeable = yes
path = /srvnfs/reference
public = yes
create mode = 664
directory mode = 664
[ttc]
writeable = yes
readonly = no
guest ok = yes
path = /srvnfs/TTC - Everything
public = yes
force create mode = 664
write list = scatterbrainz, root
[scatterbrainz]
create mode = 0666
path = /samba/scatterbrainz
directory mode = 2664
public = yes
writeable = yesThe fstab is:
Code://192.168.0.101/ttc /mount/ttc cifs domain=GROUPTHINK,username=scatterbrainz,password=********The info from mount is:
Code://192.168.0.101/ttc on /mount/ttc type cifs (rw,relatime,vers=default,cache=strict,username=scatterbrainz,domain=GROUPTHINK,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.0.101,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1)


The problem I am having is both the Mac and the Centos WS have the mounts as read only. I have tried everything I can think of to fix the issue but keep coming up read only.
Any help, point in the right direction would be awesome.
Greg
For reference the server smb.conf is:
Code:# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
log file = /var/log/samba/log.%m
hosts allow = 192.168. 0.
passdb backend = tdbsam
netbios name = mindhole
netbios aliases = mindhole
server string = SambaServer
logon script = logon.bat
workgroup = GROUPTHINK
logon path = \\%L\Profiles\%U
security = user
syslog = 0
create mode = 777
add machine script = /usr/sbin/useradd -d /dev/null -g 200 -s /sbin/nologin -M %u
max log size = 1000
directory mode = 777
#==================================== Share Definitions ===============================
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[Profiles]
path = /var/lib/samba/profiles
create mask = 0777
directory mask = 0777
writable = Yes
[users]
path = /samba/users
browseable = yes
read only = no
force create mode = 0666
force directory mode = 2664
valid users = @sambashare @sadmin
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
browseable = No
[archives]
comment = Archive Area
path = /srvnfs/archives
browsable = yes
writeable = yes
create mode = 0664
public = yes
directory mode = 0664
guest ok = yes
[working]
writeable = yes
delete readonly = yes
path = /srvnfs/working
force directory mode = 664
force create mode = 664
create mode = 664
public = yes
directory mode = 664
write list = scatterbrainz, root
[reference]
writeable = yes
path = /srvnfs/reference
public = yes
create mode = 664
directory mode = 664
[ttc]
writeable = yes
readonly = no
guest ok = yes
path = /srvnfs/TTC - Everything
public = yes
force create mode = 664
write list = scatterbrainz, root
[scatterbrainz]
create mode = 0666
path = /samba/scatterbrainz
directory mode = 2664
public = yes
writeable = yesThe fstab is:
Code://192.168.0.101/ttc /mount/ttc cifs domain=GROUPTHINK,username=scatterbrainz,password=********The info from mount is:
Code://192.168.0.101/ttc on /mount/ttc type cifs (rw,relatime,vers=default,cache=strict,username=scatterbrainz,domain=GROUPTHINK,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.0.101,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1)