> silly question really, i've just (finally) figured out how to connect to a
> novell server using ncpmount, but i need to be su to do it. How do i make
a
> stardard user have root privaliges?
When I had to connect to a Novell server (it was a royal pain though, ls was
bust, cp exit statuses incorrect) the automounter handled the mounts on
access, perhaps you can get amd(8) to work for you.
But my scripts had to log in to Novell first, with a user/pass combination,
so much for all that crypto stuff Novell like to hype. I was using the
newer Novell client stuff that handles NDS, developed by Caldera, rather
than the older (and more common?) Novell client.
When I had a similar need a long way back with Ultrix & SunOS, I wrote a
small C program which used the suid root idea, and had a root owned config
file, which contained what mounts were permitted, and what options. There
are checklists around to guide you in keeping the program safe, and involve
things like obliterating the environment, avoid buffer overrun problems etc.
There are ways of allowing ordinary users to mount filesystems, that are
defined in fstab(5), but I've never had a case where it would have been
appropriate, and used auto-mounting instead.
sudo, is a good tool for particular commands, but check they don't allow
escapes to shell, and so on. It's main drawback, is that most users don't
really want to bother with such things, so if you can make it happen auto
magically for them, you'll probably have a quieter life.
Rob
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------
This archive was generated by hypermail 2.1.3 : Thu 22 Nov 2001 - 13:11:19 GMT