I just created a new ext4 filesystem on a new drive and I am trying to mount it manually:
mount /dev/sdc1 a
it does mount correctly, but then only root seems to have write permissions. How can I give write permissions to my user as well?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
As Mark Plotnick said,
mount just overlays a directory in your system with the contents of
/ on the attached drive.
To circumnavigate this and as an expansion to John's answer, you can try
chmod -R -rwxrw-rw a
chmod -R 755 a
depending on your preference. The command will change all files in
a to give you RW permissions.
ls -l reports that root is the owner:
chown -R <your name here> a
would make you the owner of all the files in
-R can mess up some intentional permissions modifications on files, so do exercise caution when executing such commands.