LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Changing permissions (https://www.linuxquestions.org/questions/linux-software-2/changing-permissions-425832/)

stevenh 03-17-2006 03:34 PM

Changing permissions
 
Hi,

i have a USB disk formatted with NTFS (sorry ;) ). The problem is that i can only acces it as root. Also, changing permissions fails. How can i fix this?

Steven

acid_kewpie 03-17-2006 03:56 PM

can you define "access" here? if you mean you can only mount it as root, then i'd assume that'd mean you've no entry in /etc/fstab to allow non-root users to mount it. if you just mean you want other users to be able to read the data, try mounting it whilst specifiying an alternative uid and/or gid, e.g. "mount -t ntfs /dev/sda1 /mnt/usb -o uid=500,gid=500" or settings a looser umask, e.g. "mount -t ntfs /dev/sda1 /mnt/usb -o umask=222"

stevenh 03-17-2006 04:22 PM

it is already mounted. it mounts at every boot. can i change this settings in some config file?

spooon 03-17-2006 09:18 PM

Quote:

Originally Posted by stevenh
it is already mounted. it mounts at every boot. can i change this settings in some config file?

in your /etc/fstab; the 4th field specifies the mount options

stevenh 03-18-2006 04:17 AM

Thanks, that worked!


All times are GMT -5. The time now is 01:54 PM.