LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-02-2010, 09:19 AM   #1
filmon
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
How to add user with root privileges and SSH access


How to add user with root privileges and SSH access.
 
Old 11-02-2010, 09:58 AM   #2
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
you need to setup sudo for each user instead of giving them full root privileges. By default, SSH does not allow root access directly, most user account is allow to ssh to the server.
 
Old 11-02-2010, 10:02 AM   #3
fcintron
Member
 
Registered: Oct 2010
Location: México
Distribution: Centos
Posts: 72

Rep: Reputation: 4
Quote:
Originally Posted by filmon View Post
How to add user with root privileges and SSH access.
Welcome to linux questions.

What distro do you have?

I have Centos and ssh is installed by default with access to everybody.

If you want a user with root privileges, you could use "sudo" this program allows users to run programs with the security privileges of another user (normally the superuser, or root). It depends on the distro the way you could install it.


Regards
 
Old 11-02-2010, 10:22 AM   #4
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,843

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
new user with root priv over ssh

Actually there is a way by subverting the security and account systems. It is pretty easy, but I cannot recommend it. After learning it I have jumped through hoops to never have to use it.

There are otehr secure alternatives to sudo. If sudo and ssh in combination will not server, I recommend that you seek one of the other tools to allow whatever process you require for your purpose at minimum risk.
 
Old 11-02-2010, 10:51 AM   #5
filmon
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Original Poster
Rep: Reputation: 0
I am using Linux 5.4
What is the command to setup SUDO for each user.
 
Old 11-02-2010, 11:40 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
Originally Posted by filmon View Post
I am using Linux 5.4
What is the command to setup SUDO for each user.

Have a read here. However, I think it would be worthwhile explaining what you're trying to accomplish. You really shouldn't be handing out root privileges all over the place, and your posts suggest you're not as familiar with security as you might need to be if you're handing out sudo privileges. What you don't want to do is use sudo to give users full root privileges. The idea behind sudo is that users can have root access to only the features they absolutely have to.
 
1 members found this post helpful.
Old 11-02-2010, 12:35 PM   #7
filmon
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks the link was helpful.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create SSH user without access to root directory victorsk Linux - Networking 1 08-07-2009 06:56 PM
Linux - How to add a new user with the same root/super-user's privileges? asgarcymed Linux - General 8 12-23-2006 07:45 PM
Grant a user root privileges to add and delete users Maranza Linux - Security 6 11-02-2006 10:10 AM
How to add user with root privileges and SSH access adamrad Linux - General 8 10-31-2006 02:53 PM
ssh access allowed only to root user? zovres Linux - Newbie 5 09-25-2003 04:19 PM


All times are GMT -5. The time now is 07:32 PM.

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