Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-09-2006, 07:57 PM
|
#1
|
LQ Newbie
Registered: Mar 2004
Location: Sydney
Distribution: Slackware, Fedora
Posts: 10
Rep:
|
How to Create an Account with only SSH Access
Hello,
Sorry for the complete newbie question but...
I have a Windows 2003 Domain with a SME linux box running as my gateway. I can SSH into the SME box and then RDP into my desktop at work; using the root account on the SME box.
I'd like to set this kind of access up for some of the executives at place of work, but dont want them logging in with the root account. Can someone please send me a quick how-to for setting up an account on the SME box that only has SSH access and can't modify or change anything on the it?
Any help would be much appreciated!
Thanks,
Matthew Collins
|
|
|
03-09-2006, 08:13 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
It sounds like you just want to add an ordinary user to the Linux box. Have you tried the useradd tool (it creates a user based on the command line parameters you give it) or the adduser tool (it creates a user based on the answers you give to its prompts)?
In either case an ordinary user is limited in what they can change or access on the box. I'd recommend that you don't use root to login to the SSH server either. Just su when you need to perform administrative tasks.
|
|
|
03-09-2006, 08:15 PM
|
#3
|
LQ Newbie
Registered: Mar 2004
Location: Sydney
Distribution: Slackware, Fedora
Posts: 10
Original Poster
Rep:
|
Gilead,
Thanks...You sure just adding a user using useradd will not give them too much permission on the box? I figured there'd be some way of locking it down more.
Matthew Collins
|
|
|
03-09-2006, 08:27 PM
|
#4
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
Usually that's fine Matthew. With default permissions they can't delete system configuration files or application programs and they can't see inside system logs. They can delete their own stuff in their home directory, but that sort of thing can be retrieved from backups.
Unix system are designed for multiple users so you can be pretty confident. Just don't give them the root account's password 
|
|
|
03-09-2006, 08:30 PM
|
#5
|
LQ Newbie
Registered: Mar 2004
Location: Sydney
Distribution: Slackware, Fedora
Posts: 10
Original Poster
Rep:
|
Steve,
Thank you... I'll keep the root password in a safe spot
Matthew Collins
|
|
|
All times are GMT -5. The time now is 04:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|