I cannot access the partitions I mounted unless I am root
I am using gentoo
Here is my fstab: Code:
# /etc/fstab: static file system information. googling for linux user permissions is getting me nowhere ive looked on this for over an hour now and im sure its very easy please help |
Try the following and see if it does what you need:
Code:
/dev/sda1 /mnt/windows ntfs defaults,noatime,ro,user,umask=0000 0 0 |
ok ill reboot and try that
any idea how i can get a FULL list of the permissions, and how to properly change them for an existing user? usermod is confusing because im not sure if im ADDING or REPLACING permissions with -G |
You don't need to re-boot for that to take effefct. Just modify /etc/fstab and remount the filesystem with:
Code:
mount -o remount /dev/sda1 Code:
/dev/sda1 /mnt/windows ntfs defaults,noatime,ro,user,umask=0000,uid=andrew 0 0 |
ok that allowed me to get to them
do you know where i can get an entire list of groups/permissions, and instructions on how to set them for users? |
Have a look at man chmod, man chown and the info at http://rute.2038bug.com/node17.html.gz - they provide a good explanation of what is happening. The list of users on your system is in /etc/passwd and the list of groups is in /etc/group.
Very briefly, there are three groups of permissions plus 'special permissions' so you'll see four numbers when people change permissions using octal notation. The octal numbers correspond to read, write and execute permissions. Read is 4, write is 2 and execute is 1. So to have a file that can be read, written and executed by anyone you could use either chmod 0777 filename or chmod ugo+rwx filename (ugo is each of user, group, other users) The leading 0 in the 0777 and the ugo need further explanation, but it will be better described in the link above. For example you could use 'a' for all instead of ugo, etc. |
ok i gave myself basically all the permissions of root, using gpasswd -a andrew ______, _____ being the permission and i went down the list one by one
yet i still cannot read CDrom unless im root now id like to follow your instructions by am i going to have to do this every time or something? i just want to make it to where andrew has all the privileges of root, and then ill subtract out bin, root, and emerge or something later. its just a royal pain that i have to log out and go to my root accoutn which isnt hardly set up or customized or anything just to read a CDrom |
You shouldn't have to be root to access your cdrom. You can modify /etc/fstab the same way as for the NTFS partition:
Code:
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,users,exec,ro,umask=0000,uid=andrew 0 0 |
Can't access partitions with ntfs file format unless I am root
This info fixed the problem with Ubuntu 5.10, instead of remount, umount, then mount
|
All times are GMT -5. The time now is 09:38 AM. |