I cannot access the partitions I mounted unless I am root
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/sda2 / ext3 noatime 0 1
/dev/sda3 none swap sw 0 0
/dev/sda1 /mnt/windows ntfs defaults,noatime,ro,user 0 0
/dev/sdb1 /mnt/external ntfs defaults,noatime,ro,user 0 0
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
I can only get to 'windows' and 'external' as root. My user permissions are messed up, i tried to add stuff but now i barely have any permissions and now i supposedly have more than root
googling for linux user permissions is getting me nowhere ive looked on this for over an hour now and im sure its very easy
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
mount -o remount /dev/sdb1
If you want to change the file system permissions for the NTFS partitions, you'll need to do that in /etc/fstab also - NTFS doesn't support Linux file system attributes. You can use the following (if your username is andrew):
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.