Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have mounted a filesystem in a /mnt/storage but how do i make it accessible for all users not only root?

share|improve this question
2  
With accessible, do you mean read-only access or read-write access to everyone? –  Janne Pikkarainen Oct 29 '10 at 10:59
    
seems like a good question for unix SE also I'm guessing this depends on how it's mounted. is it a removable drive? what filesystem? nfs? samba? –  xenoterracide Oct 29 '10 at 12:52

2 Answers 2

up vote 2 down vote accepted

If you mount the drive with the -o noacl option, everybody will have full read/write access.
If you only want people to be able to read the drive, chmod a+r /mnt/storage

share|improve this answer

You can specify the uid & gid options to identify the mounted volume's owner. In /etc/fstab you can use something like:

/dev/sdc1  /mnt/storage  ext4 uid=1000,gid=1000 1 2

or interactively:

sudo mount -o uid=1000,gid=1000 /dev/sdc1 /mnt/storage
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.