stiV
December 9th, 2008, 05:52 AM
hello!
I would need a secure (!) way to enable a user (lets user "info") to start a script (for the moment a bash script, may be a perlscript some time that also takes some time to run and asks questions) - just as he logs in.
So instead of giving the user a normal shell, the shell would be the script itself, for the moment only printing some system information.
The "user" can be used via console or ssh, logs in with eg. "info:info" and gets the ouput - nothing else.
At the moment i still get the ubuntu message...
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Could not chdir to home directory /dev/null: Not a directory
anyway to do this properly and in a way that even if the script hangs the user can't break out?
regards
stefan
I would need a secure (!) way to enable a user (lets user "info") to start a script (for the moment a bash script, may be a perlscript some time that also takes some time to run and asks questions) - just as he logs in.
So instead of giving the user a normal shell, the shell would be the script itself, for the moment only printing some system information.
The "user" can be used via console or ssh, logs in with eg. "info:info" and gets the ouput - nothing else.
At the moment i still get the ubuntu message...
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Could not chdir to home directory /dev/null: Not a directory
anyway to do this properly and in a way that even if the script hangs the user can't break out?
regards
stefan