VectorLinux

The nuts and bolts => Networking & Security => Topic started by: gijii on July 29, 2007, 12:52:03 pm

Title: Permissions for a shared partition [SOLVED]
Post by: gijii on July 29, 2007, 12:52:03 pm
Hi all,

I need your advice to solve a problem.
I am trying to make a shared partition where to put all media contents to be shared between my computers.
I made a 250 Gb partition on my disk, I formatted it with xfs filesystem (mkfs.xfs /dev/sda7).
Then I made a new mount point where to mount it (/mnt/storage) and I added it to my /etc/fstab as follows:

/dev/sda7 /mnt/storage xfs noatime,auto,rw,users,umask=0222 0  2

I have the following issues:
it is not possible to read the partition through the /media directory. It appears in it as /dev/sda7 but as normal user it is not possible to read and write it.
I was able to make it writable and readable through a
chmod 777 /dev/sda7
but I fear that, while this worked, it was unnecessary (too many permissions for everybody?).
Besides, while booting a message similar to this appears:
fsck.xfs
bad superblock, bad option....

This message does not seem to harm the system. I can see and write the partition but I believe things can be done better.
Can anyone explain what's wrong with the settings I did?

Thanks in advance

gijii
Title: Re: Permissions for a shared partition
Post by: bigpaws on July 29, 2007, 03:03:50 pm
This may help:

http://www.comptechdoc.org/os/linux/manual1/mountpoints.html (http://www.comptechdoc.org/os/linux/manual1/mountpoints.html)

HTH

Bigpaws
Title: Re: Permissions for a shared partition
Post by: gijii on July 30, 2007, 06:04:29 am
Thank you for your reply.
I do not understand how the link you suggested should help. If the link is correct I do not see any info regarding permissions.
Could you please explain better?
Title: Re: Permissions for a shared partition
Post by: bigpaws on July 30, 2007, 07:47:20 am
How did you set this up? VASM?

Maybe this will help:

http://www.yolinux.com/TUTORIALS/LinuxTutorialAdditionalHardDrive.html (http://www.yolinux.com/TUTORIALS/LinuxTutorialAdditionalHardDrive.html)

Bigpaws
Title: Re: Permissions for a shared partition
Post by: gijii on July 31, 2007, 07:14:14 am
I did not set up it through VASM.
I would have set it up during the installation process but the installer gives no option for mount points other than those listed.
I just formatted the partition, made the /mnt/storage mount point and modified /etc/fstab.
As I told it, I can read and write the /mnt/storage directory (I chmoded it to 777) but I am not able to have it work through the /media directory (that would be a more elegant way I guess...)
How are the /mnt and /media directory connected?

Thanks for replies
Title: Re: Permissions for a shared partition
Post by: bigpaws on July 31, 2007, 01:26:27 pm
You could try ls -la /mnt and then ls -la /media for symlinks.

Bigpaws
Title: Re: Permissions for a shared partition
Post by: gijii on September 04, 2007, 03:09:21 am
I should have fixed this issue.
There was an option I put in /etc/fstab that was not accepted by fsck.xfs and caused the message during boot up.
The bad option was umask=0222 that I used to manage permissions.
Now the big partition is correctly mounted and linked to the /media directory.
I granted read and write permissions to various users.
It seems to me everything works fine now.