Re: mounting /tmp from fstab

2000-02-25 Thread Shaul Karl
FWIW, here is the relevant line... =20 /dev/md0 /tmp ext2defaults 0 2 thats ok, but i would mount it defaults,nosuid for extra security. (it depends on how you partitioned if /var and /tmp and /home are there own partitions you should be able to mount them all nosuid)

Re: mounting /tmp from fstab

2000-02-25 Thread Ethan Benson
On Thu, Feb 24, 2000 at 06:50:33PM -0500, Jonathan Lupa wrote: Thanks all, I'll just follow this advice below. Where in the boot chain should this go? Currently, I'm adding it to /etc/init.d/bootmisc.sh. hmm? the chmod is permanent, just like when you chmod any other directory on a unix

Re: mounting /tmp from fstab

2000-02-25 Thread Ethan Benson
On Fri, Feb 25, 2000 at 03:16:42AM +0200, Shaul Karl wrote: 1) extra security? [03:11:45 /tmp]$ man 8 mount | grep -A1 -B3 suid nosuid Do not allow set-user-identifier or set- group-identifier bits to take effect. (This seems safe,

Re: mounting /tmp from fstab

2000-02-24 Thread Ethan Benson
On Wed, Feb 23, 2000 at 11:53:45PM -0500, Jonathan Lupa wrote: Hi all, I'm having what is probably a stupid problem mounting /tmp from fstab. Basicly it ends up with permisions of 755. Is there any way to control permissions of an ext2 partition via fstab? (mode=, and umask= seem to only

Re: mounting /tmp from fstab

2000-02-24 Thread aphro
adjust the permissions of /tmp (the mountpoint itself) before mounting the filesystem it should get mounted correctly. nate On Wed, 23 Feb 2000, Jonathan Lupa wrote: jjlupa Hi all, I'm having what is probably a stupid problem mounting /tmp jjlupa from fstab. Basicly it ends up with permisions

Re: mounting /tmp from fstab

2000-02-24 Thread Ethan Benson
On Wed, Feb 23, 2000 at 10:32:27PM -0800, aphro wrote: adjust the permissions of /tmp (the mountpoint itself) before mounting the filesystem it should get mounted correctly. actually no, the permissions of the mountpoint are irrelevant as they are replaced with the permissions of the filesystem

Re: mounting /tmp from fstab

2000-02-24 Thread Bruce Sass
On Wed, 23 Feb 2000, aphro wrote: adjust the permissions of /tmp (the mountpoint itself) before mounting the filesystem it should get mounted correctly. No. You need to set the permissions after the partition is mounted. I tested this by creating a directory, doing a chmod 777 on it, then

Re: mounting /tmp from fstab

2000-02-24 Thread Jonathan Lupa
Thanks all, I'll just follow this advice below. Where in the boot chain should this go? Currently, I'm adding it to /etc/init.d/bootmisc.sh. Tertiary question - why nosuid on /var or /home? Don't some programs leave some stuff in /var (vgetty comes to mind), and shouldn't you allow users to set