Mounting filesystems 'noexec'?

Mounting filesystems 'noexec'?

Post by san.. » Thu, 15 Aug 1996 04:00:00



Hi,

I'd like to know if it is somehow possible to mount a filesystem 'noexec',
so it doesn't allow execution of binaries on that disk. I'd like to use it
to disallow users in our FreeNet environment to install binary's in their
homedirectories and execute them. I know it is possible under Linux and
FreeBSD, but I couldn't find anything in the man pages. Is it just
impossible or is there some patch or something I overlooked.

Regards,

Sander

De Digitale Stad - The Digital City
Amsterdam, The Netherlands

 
 
 

Mounting filesystems 'noexec'?

Post by san.. » Fri, 16 Aug 1996 04:00:00





: > Hi,
: >
: > I'd like to know if it is somehow possible to mount a filesystem 'noexec',
: > so it doesn't allow execution of binaries on that disk. I'd like to use it
: > to disallow users in our FreeNet environment to install binary's in their
: > homedirectories and execute them.

: Effectively what you want is to stop users executing files which are stored
: in their home directories, right?

: There would be nothing to stop them putting the binaries elsewhere, like in
: /tmp and running them there.

Sorry, I might not be entirely clear about what I meant. I wan't users to be
able to execute the programs we provide (Lynx, Pine, nn, and a few other
programs), and nothing else. Since our users have FTP access, to upload
files for their homepgae, they could upload their own binaries, and execute
them. We have build a chroot-environment, so normal users don't have access
to the entire file-system.

I want people to be able to execute the programs we provide, but not to be
able to execute programs that they installed themselfs. So the ideal
situation would be to have some filesystem which contains the executables,
and isn't writable for normal users, and a filesystem which contains the
user's homedirectories, in which they should be able to write, but not to
execute anything.

Best regards,

Sander

De Digitale Stad - The Digital City
Amsterdam, The Netherlands

 
 
 

Mounting filesystems 'noexec'?

Post by Brian S. Craigie - Unix SA - NEC - Scotla » Fri, 16 Aug 1996 04:00:00




Quote:> Hi,

> I'd like to know if it is somehow possible to mount a filesystem 'noexec',
> so it doesn't allow execution of binaries on that disk. I'd like to use it
> to disallow users in our FreeNet environment to install binary's in their
> homedirectories and execute them.

Effectively what you want is to stop users executing files which are stored in
their home directories, right?

There would be nothing to stop them putting the binaries elsewhere, like in /tmp
and running them there.

If they are permitted to run the binaries from somewhere already, then what's
wrong with them copying them elsewhere before running them?  On the other hand,
if you don't want them to run them at all, make them only executable and
readable by those who should run them.

--

Best Regards,

Brian Craigie

Unix Sys Admin

My views are not necessarily those of my employers...

<<< Would sixty gallons be sufficient? -- Robby the Robot >>>

 
 
 

Mounting filesystems 'noexec'?

Post by Thomas Buehlma » Fri, 16 Aug 1996 04:00:00




>I want people to be able to execute the programs we provide, but not to be
>able to execute programs that they installed themselfs. So the ideal
>situation would be to have some filesystem which contains the executables,
>and isn't writable for normal users, and a filesystem which contains the
>user's homedirectories, in which they should be able to write, but not to
>execute anything.

Would rksh be a solution? Maybe you check the man-pages on this one. ...

Thomas

 
 
 

Mounting filesystems 'noexec'?

Post by Mark Tov » Sat, 17 Aug 1996 04:00:00






>: > Hi,
>: >
>: > I'd like to know if it is somehow possible to mount a filesystem 'noexec',
>: > so it doesn't allow execution of binaries on that disk. I'd like to use it
>: > to disallow users in our FreeNet environment to install binary's in their
>: > homedirectories and execute them.

>: Effectively what you want is to stop users executing files which are stored
>: in their home directories, right?

>: There would be nothing to stop them putting the binaries elsewhere, like in
>: /tmp and running them there.

>Sorry, I might not be entirely clear about what I meant. I wan't users to be
>able to execute the programs we provide (Lynx, Pine, nn, and a few other
>programs), and nothing else. Since our users have FTP access, to upload
>files for their homepgae, they could upload their own binaries, and execute
>them. We have build a chroot-environment, so normal users don't have access
>to the entire file-system.

>I want people to be able to execute the programs we provide, but not to be
>able to execute programs that they installed themselfs. So the ideal
>situation would be to have some filesystem which contains the executables,
>and isn't writable for normal users, and a filesystem which contains the
>user's homedirectories, in which they should be able to write, but not to
>execute anything.

>Best regards,

>Sander

>De Digitale Stad - The Digital City
>Amsterdam, The Netherlands

    Have you examined using a restricted shell?  If ksh is invoked
using the '-r' flag, then the user's activitys can be greatly
restricted.  You can create their own bin directories that contain
soft links to the actual binaries that you want them to be able to
execute.  If their PATH variable is limited to this directory, then
they will not be able to execute anything outside of that.
    -Mark Tovey

--
Mark Tovey              |
Unix System Admin       |  In the land of the dark, the Ship of the Sun is
NextLink, Portland OR   |  driven by the Grateful Dead.

503-727-6420            |

 
 
 

1. 'mount' say NO iso9660 support and 'cat /proc/filesystems' say YES!!!

Hello

While I was fighting to get the CDROM (Sony CDU76E ATAPI CD) to be mounted
I found in the README file in device dir that the ATAPI CDs connected to the
second IDE interface should be drived by /dev/hdc, when I did and mount gives
this message

mount: iso9660 is not supported bt this kernel.

I installed InfoMagic Slakeware 2.2.1 (March 95 CDs).
While The kernel say it knows about the iso9660. I did

cat  /proc/filesystems

and iso9660 appeared as a block fs.

Before the /cdrom was linked to /dev/hd1a  ( done by the setup) and I was
getting the message

mount: /dev/hd1a is not a block device.

Any Clue.

I'm going to install the 1.2.10 kernel.

Thanks
Mostafa

2. kdesuport libjpeg6b

3. df says 'can't read table of mounted filesystems'

4. Problem with on Board SiS530 vga

5. Mounting network 'filesystems'

6. stray eof in a text file.

7. 'Write' to readonly NFS-mounted filesystem?

8. Help 3c505 ethernet cards

9. Enhanced CD's: Can't Mount Filesystem

10. Can't mount IDE/ATAPI CDROM (can't find filesystem)

11. Mounting PC's filesystem as UNIX filesystem with NFS

12. 'mount' perma-hangs for any filesystem or device

13. Problem mounting a 'newer FAT32' filesystem Linux5.0