<snip>
> I have a simple script which running a menu as below when i logon as
> user "abc"
>
> A. Check Hard Disk Space
> B. Check Mem Info
> C. Check CPU Info
>
> What my question is how can I configure this user "abc" can only
access
> to this  menu.
>
<snip>

Look into using a chroot jail for this user.  The other answer you got
earlier, about executing the script automatically at login was valid,
but not secure.  All the user would have to do is hit control-C (or the
like) to escape from the login shell (before it finished executing and
logged out), and then would have normal access.  You can specify the
login shell for that user within /etc/passwd.  Set up an alternate
"secure shell" for such users, which will chroot them to a safe place,
where they can only execute the set of commands you include inside the
chroot jail.

Regards,
Jim



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to