Samba with Amanda backup --- permissions

Discussion in 'Server Operation' started by sambauser, May 31, 2007.

  1. sambauser

    sambauser New Member

    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.

    AmandaBackup:/media # chown amandabackup:disk winshare/
    AmandaBackup:/media # ls -l
    total 0
    drwxr-xr-x 2 root root 48 May 24 14:39 cdrom
    drwxr-xr-x 2 amandabackup disk 48 May 30 13:05 winshare
    AmandaBackup:/media # mount -t smbfs -o username=linuxbak //10.80.101.15/LinuxBak /media/winshare/
    Password:
    AmandaBackup:/media # ls -l
    total 4
    drwxr-xr-x 2 root root 48 May 24 14:39 cdrom
    drwxr-xr-x 1 root root 4096 May 31 12:16 winshare
    AmandaBackup:/media #
     
  2. sjau

    sjau Local Meanie Moderator

    You have to chown the folder once it's mounted :) then it should stay like this wherever you mount it.
     

Share This Page