Tomasz Chmielewski
2006-Mar-08 10:29 UTC
[Samba] mount.cifs - everything is owned by root (when mounting 2003 shares)
I just tried to mount Windows 2003 share. I used the following command to mount it: mount.cifs //10.1.1.1/G$ /mnt/2003/ -o user=admin,domain=MYDOMAIN The mount is fine, I can read the files. However, each and every file is owned by root, which is not true. Moreover, each and every file and folder has the same permissions, which is also not true. I can change the owners and permissions, but they are not reflected on Windows 2003, only Linux sees it. If I umount the share and mount it again, all ownership/permission changes I made are lost. getent passwd returns all Windows users correctly. I'm using winbind from Samba 3.0.20. Where should I look to solve the issue? -- Tomasz Chmielewski http://wpkg.org
Michael Gasch
2006-Mar-10 11:45 UTC
[Samba] mount.cifs - everything is owned by root (when mounting 2003 shares)
try option uid=<youraccount> should fix write errors greez Tomasz Chmielewski schrieb:> I just tried to mount Windows 2003 share. > > I used the following command to mount it: > > mount.cifs //10.1.1.1/G$ /mnt/2003/ -o user=admin,domain=MYDOMAIN > > The mount is fine, I can read the files. > > However, each and every file is owned by root, which is not true. > > Moreover, each and every file and folder has the same permissions, which > is also not true. > > I can change the owners and permissions, but they are not reflected on > Windows 2003, only Linux sees it. > If I umount the share and mount it again, all ownership/permission > changes I made are lost. > > > getent passwd returns all Windows users correctly. > > I'm using winbind from Samba 3.0.20. > > Where should I look to solve the issue? > >
Tomasz Chmielewski
2006-Mar-10 12:13 UTC
[Samba] mount.cifs - everything is owned by root (when mounting 2003 shares)
Michael Gasch wrote:> try option uid=<youraccount> > should fix write errorsI wanted to make a backup of the data stored on a Windows 2003 server, with the correct users and permissions. So this is not a solution, really. -- Tomasz Chmielewski http://wpkg.org