SMB/CIFS connection, attempting to change the permissionswithin rhel5 to comply with the clients needs
- by Skreemer
I can get the mount to work and as written in /etc/fstab:
//pcsprdvhost.prod.tsh.mis.mckesson.com/sftphome /sftphome2 cifs username=myuser,workgroup=domain,password=mypassword,noserverinfo,uid=tmadmin,gid=tibco,nounix,file_mode=0777,dir_mode=0777 0 2
this means that every directory under /sftphome2 looks like:
drwxrwxrwx 1 tmadmin tibco 0 Jul 6 2010 D0000001
When I issue:
chown -R D0000001:D0000001_admin D0000001
Nothing happens.
When I pull the uid and gid specifications out I get the system owner/group of root:sys
What I need to be able to do is change the sub-directories under /sftphome2 to whatever owner and group (and permissions) I desire versus the ones that are getting specified.
How do I do this?