From: Stephen Kasirye (kassets@techmuk.ac.ug)
Date: Tue May 01 2001 - 12:03:31 CEST
On Thu, 26 Apr 2001, Joshua Hudson nicely wrote:
Hullo Joshua,
> I have been asked how I added sudo to muLinux. Here is my answer.
> 
> As for proceedure: log in as root (what else) and copy sudo c files to
> current directory. The following commands complete the installation, 
> assuming GCC addon is mounted.
>   mkdir /usr/local
>   mkdir /usr/local/bin
>   mkdir /usr/local/adm
>   mkdir /usr/local/adm/logs
>   touch /usr/local/adm/sudoers
>   chmod 600 /usr/local/adm/sudoers
>   gcc sudo.c clrusr.c
==
Error message!
==
sudo.c: In function `checkdoer':
sudo.c:286: warning: assignment makes integer from pointer without a cast
==
>   mv a.out /usr/local/bin/sudo
>   chmod 4711 /usr/local/bin/sudo
> 
> The packaged man file sudo.8 still needs to be rewritten for mulinux.
> Important sudo considers daemon gid to be 3 while muLinux uses 2. Change one 
> or the other. I have commented out the mail alert as it does not work on 
> muLinux.
> 
>   # sample sudoers file:
>   # root can do anything
>   root    all
> 
>   # gandalf is the sysadmin
>   gandalf all
> 
>   # the security officer can use kill so that he can log anybody out.
>   officer /bin/kill
> 
>   # the backup operator can use all commands that require root access
>   # for backing up files.
>   backup  /bin/cp /usr/srv/bin/mkfs.ext2 /bin/mount /bin/umount
> 
Stephen
-----------------------------------------------------------------------
Twice Ceaser offered the crown to Brutus and twice Brutus refused. 
Was that ambition or not?
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.dk
For additional commands, e-mail: mulinux-help@sunsite.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:18 CET