Welcome, Guest. Please login or register.

Author Topic: Linux: Mount point permissions  (Read 1958 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Linux: Mount point permissions
« on: July 31, 2007, 08:23:27 AM »
I have just set up an Ubuntu 7.04 box as a file server, created a raid 5 array and got it mounted. Initially we were having problems getting access to the Samba share, but then realised that the user we were authenticating as didn't even have local access to the folder.

My entry in fstab was as follows:
/dev/md0 /mnt/raid ext3 defaults 1 2

I then tried changing it to:
/dev/md0 /mnt/raid ext3 rw,users 1 2

and also moving the mount point to /media/raid, but still get permission denied when cd-ing to the directory. The strange thing is that when the drive is mounted in /media/raid an icon appears on the user's desktop for the drive and is read-only, but not read-write (which it needs to be).

I then tried doing this:

# su
# cd /media/raid
# chown .

but still no joy. What am I missing?

TIA

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Linux: Mount point permissions
« Reply #1 on: July 31, 2007, 08:32:44 AM »
Ok all sorted - went in to the properties of the mount point folder and set the permissions in there. Blx to the command line I say :lol:

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline murple

  • Hero Member
  • *****
  • Join Date: Jul 2007
  • Posts: 579
    • Show only replies by murple
    • http://www.murple.net
Re: Linux: Mount point permissions
« Reply #2 on: August 28, 2007, 12:42:10 AM »
In the context of a directory, the "x" permission means you can go to the directory (since an executable directory makes no sense hehe).

If you do chmod +rwx on the directory, you'll be able to enter it.

Some other permissions act different on directories than files. For example, +s on a file makes the file setuid, while +s on a directory means all files in the dir inherit the owner of the directory.