SMB/CIFS connection, attempting to change the permissionswithin rhel5 to comply with the clients needs

Posted by Skreemer on Server Fault See other posts from Server Fault or by Skreemer
Published on 2011-01-05T21:55:24Z Indexed on 2011/01/05 22:55 UTC
Read the original article Hit count: 174

Filed under:
|
|

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?

© Server Fault or respective owner

Related posts about permissions

Related posts about SMB