On 4/19/2011 4:07 AM, Koenraad Lelong wrote: > Hi, > > I'm trying to setup autofs for use with vchanger. > My setup works OK for root, but I don't have rw-access to the USB > RDX-drive with the bacula user which vchanger uses. > As a start I formatted the cartridges with ext3. > > My setup : > auto.master : > +auto.master > /mnt/vchanger /etc/auto.vchanger --timeout=30 > > auto.vchanger, working OK as root : > # /etc/auto.vchanger > * -fstype=auto,rw :/dev/disk/by-uuid/& > > Every time I try to use vchanger's command : > vchanger -u bacula -g disk /etc/bacula/c1.conf initmag 1 > I get an error : > could not create index file on > /mnt/vchanger/3c3a8772-c887-4023-8b24-95a1d0c4dc8a > The drive is mounted, but with bad permissions : > drwxr-xr-x 5 root root 4096 18 apr 14:43
Just change the directory permissions for that partition. The USB drive partition has a separate filesystem from the root partition, and the permissions you need to set are filesystem permissions. Thus, the USB drive must be mounted in order to set its filesystem's permissions. If you attempt to change permissions of the mountpoint when the drive is not mounted, then you are setting permissions in the root partition's filesystem, rather than the USB drive's filesystem. ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users