I have recently done a fresh install of 9. For the first time I put /home on a seperate partition, on a seperate disc. I'm curious about the permissions, this is not right(?): jake@linux:~> ls -al /dev/hdb brw-rw---- 1 root disk 3, 64 2003-09-23 18:59 /dev/hdb Jake
Apologies, this is a poorly worded question. Let me try again. My home partition seems to work despite the fact that it is mounted r/w only. No `x`. I've had a look at another machine set-up by someone more qualified than me and his permissions are the same. For the /home partition, permissions read rw-rw----. OK, say I wanted to have /temp on a seperate partition but wanted to bar anything from executing from /temp? Jake
On Sunday 25 April 2004 20.49, Jake wrote:
Apologies, this is a poorly worded question. Let me try again.
My home partition seems to work despite the fact that it is mounted r/w only. No `x`. I've had a look at another machine set-up by someone more qualified than me and his permissions are the same. For the /home partition, permissions read rw-rw----.
The permissions on the device file have little bearing on this. You are not executing the device :)
OK, say I wanted to have /temp on a seperate partition but wanted to bar anything from executing from /temp?
Add 'noexec' to the mount options in /etc/fstab. Note, however, that it is extremely difficult to stop people from executing things on a partition. exec rights or no. On most systems, it is trivial to execute things on a noexec partition
On Sun, 25 Apr 2004 19:49:36 +0100
Jake
Apologies, this is a poorly worded question. Let me try again.
My home partition seems to work despite the fact that it is mounted r/w only. No `x`. I've had a look at another machine set-up by someone more qualified than me and his permissions are the same. For the /home partition, permissions read rw-rw----.
OK, say I wanted to have /temp on a seperate partition but wanted to bar anything from executing from /temp? Use noexec when mounting: mount -o rw,noexec /dev/xxxx /temp or in /etc/fstab /dev/ /temp reiserfs rw,noexec 1 1
--
Jerry Feldman
On Sun, 2004-04-25 at 14:49, Jake wrote:
Apologies, this is a poorly worded question. Let me try again.
My home partition seems to work despite the fact that it is mounted r/w only. No `x`. I've had a look at another machine set-up by someone more qualified than me and his permissions are the same. For the /home partition, permissions read rw-rw----.
In your original post the perms were for the device driver. It this still the same here? You cannot look at the perms for the driver but need to look at the perms for the mount point, in this case /home.
OK, say I wanted to have /temp on a seperate partition but wanted to bar anything from executing from /temp?
Jake
the "x" permission on a folder controls whether someone can view the controls of the folder -not- whether they can execute a program. That is controlled by the perms on the file. -- Ken Schneider unix user since 1989 linux user since 1994 SuSE user since 1998 (5.2)
On 2004-04-24 22:22, Jake wrote:
I have recently done a fresh install of 9. For the first time I put /home on a seperate partition, on a seperate disc.
I'm curious about the permissions, this is not right(?):
jake@linux:~> ls -al /dev/hdb brw-rw---- 1 root disk 3, 64 2003-09-23 18:59 /dev/hdb
Why not? Only that it is not a partition but the whole second disk (first ide bus, slave). -- Cheers, Carlos Robinson
participants (5)
-
Anders Johansson
-
Carlos E. R.
-
Jake
-
Jerry Feldman
-
Kenneth Schneider