LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   creating a user with few permissons (https://www.linuxquestions.org/questions/linux-general-1/creating-a-user-with-few-permissons-121445/)

evilchild 11-30-2003 09:44 PM

creating a user with few permissons
 
ok heres the problem, I'm building a shell account server, and wrote a script that can add users to the system and runs when some one logs in as "new", but how would i set the account "new" so that it can only access certain commands and not have access to anything else with out affecting other users, for ex sample have the user "new" only be able to run a few scripts i wrote? Any feedback would be appreciated.

twantrd 11-30-2003 10:45 PM

Hi,

One idea is to make a group and add that user to the group. Allow only this 'group' to run certain scripts that you write.

-twantrd

fatgod 12-01-2003 05:31 AM

or if you want to make the setup really cool (and slightly more complicated :) ) make the user "new" a chrooted jail that only has the wanted commands in it's environment. then you can make the passwd and group files update by another script every hour or so.

You'd have to learn about chroot jails and such though, but it would be cool ;)

Good luck ;)


All times are GMT -5. The time now is 02:19 AM.