Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-30-2003, 09:44 PM   #1
Registered: Sep 2003
Distribution: *bsd, solaris, gentoo
Posts: 86

Rep: Reputation: 15
Question 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.
Old 11-30-2003, 10:45 PM   #2
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52

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.

Old 12-01-2003, 05:31 AM   #3
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the command to make a user change their password after creating a new user? naweenio Linux - Newbie 7 01-05-2005 07:07 AM
root permissons to user command line chaitu_iiit Linux - Software 7 11-09-2004 06:54 AM
creating a new user apoc013 Linux - Newbie 1 02-10-2004 06:22 PM
Kppp user permissons config Ando Linux - Software 1 06-10-2003 04:43 PM
Creating a New User CT Pennell Linux - Newbie 1 02-03-2003 10:41 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration