Hi, I am trying to create a Samba share on /media/winshare with the owner as amandabackup instead of root. But as soon as I mount the Samba share on to the mount point, the permissions for the owner get reverted back to root instead of amandabackup. Attaching a snapshot of how it looks like. http://www.nabble.com/file/p10894282/samba%2Bquery.jpg -- View this message in context: http://www.nabble.com/Smba-with-Amanda-backup-----permissions-tf3846638.html#a10894282 Sent from the Samba - General mailing list archive at Nabble.com.
On 5/31/07, bhoomikasc <bhoomika_sc@yahoo.com> wrote:> I am trying to create a Samba share on /media/winshare with the owner as > amandabackup instead of root. But as soon as I mount the Samba share on to > the mount point, the permissions for the owner get reverted back to root > instead of amandabackup. > > Attaching a snapshot of how it looks like. > http://www.nabble.com/file/p10894282/samba%2Bquery.jpgThe permissions on the directory used as the mount point have no effect on the permissions of the mounted filesystem. This is the case for Linux and Unix in general and is not a Samba-specific issue. You should be able to add the uid= and gid= options to your mount command to change the permissions of the mounted filesystem: mount -t cifs -o username=linuxbak,uid=amandabackup,gid=root //10.80.101.15/linuxbak /media/winshare Note that the mount type smbfs is generally deprecated in favor of cifs. Amanda supports backing up Windows shares using smbclient; I've always used that method instead of mounting a SMB filesystem. Josh Kelley
bhoomikasc wrote:> Hi, > > I am trying to create a Samba share on /media/winshare with the owner as > amandabackup instead of root. But as soon as I mount the Samba share on to > the mount point, the permissions for the owner get reverted back to root > instead of amandabackup. > > Attaching a snapshot of how it looks like. > http://www.nabble.com/file/p10894282/samba%2Bquery.jpgI suspect udev is coming into the picture because you're using /media as your mountpoint. Try mounting under /mnt & see what happens. -- Ben Tisdall
Thanks everybody...solution found. Its in the mounting --- add uid and gid to it. bhoomikasc wrote:> > Hi, > > I am trying to create a Samba share on /media/winshare with the owner as > amandabackup instead of root. But as soon as I mount the Samba share on to > the mount point, the permissions for the owner get reverted back to root > instead of amandabackup. > > Attaching a snapshot of how it looks like. > http://www.nabble.com/file/p10894282/samba%2Bquery.jpg >-- View this message in context: http://www.nabble.com/Smba-with-Amanda-backup-----permissions-tf3846638.html#a10897449 Sent from the Samba - General mailing list archive at Nabble.com.
bhoomikasc wrote:> Hi, > > I am trying to create a Samba share on /media/winshare with the owner as > amandabackup instead of root. But as soon as I mount the Samba share on to > the mount point, the permissions for the owner get reverted back to root > instead of amandabackup. > > Attaching a snapshot of how it looks like. > http://www.nabble.com/file/p10894282/samba%2Bquery.jpgI suspect udev is coming into the picture because you're using /media as your mountpoint. Try mounting under /mnt & see what happens. -- Ben Tisdall