You are not logged in.

#1 2009-06-16 08:50:24

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Regular user not able to access new partition

Hello everybody big_smile

I like to have a regular user be able to access a mounted partition.  Previously I had an unused partition that I thought I would use for testing distros on.  I've never used it so I decided to make it my backup partition.  First I formatted it:

mkfs.ext4 /dev/sda7

Then added it to /etc/fstab and made the directory:

UUID=bb3fe464-aff3-493b-8698-ce94d75a50d1 /mnt/backup ext4    defaults  0 1
mkdir /mnt/backup

Regular user isn't able to access this though.  So I changed the permissions

chmod <user>:users /mnt/backup

and was able to use it.  However, when I restart, root file permissions are added again.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#2 2009-06-16 15:09:13

DevoidOfWindows
Member
Registered: 2009-05-24
Posts: 133

Re: Regular user not able to access new partition

You need to add the user option, and also uid and gid, with the appropriate IDs for the user and group you want it mounted as.

Last edited by DevoidOfWindows (2009-06-16 15:12:14)

Offline

Board footer

Powered by FluxBB