Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member persianwhois's Avatar
    Join Date
    Apr 2007
    Location
    Mahallat
    Posts
    114

    Default Add root user with ssh

    Hello,
    How can add a root user with ssh?
    Regards,
    Masood Yarmohammadi

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    The root user is created when you install your OS. It's not recommended to have more than one root (UID:0) account on a server as it can pose a significant security risk. For that it's better to use either the wheel group and su, or sudo. You should check out a Linux specific site for that type of exercise as mentioned in your previous post.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Feb 2007
    Posts
    79

    Default

    You could allways create a reseller and give them full permission's

  4. #4
    Member persianwhois's Avatar
    Join Date
    Apr 2007
    Location
    Mahallat
    Posts
    114

    Default

    Thanks for answers.
    I need 2 user by root access.
    How can create it with ssh access?
    Regards,
    Masood Yarmohammadi

  5. #5
    Member
    Join Date
    Mar 2007
    Posts
    59

    Default

    type

    Code:
    adduser username
    then make type

    Code:
    visudo
    if you don't know how to use sudo, please check

    Code:
    man sudo
    man visudo

  6. #6
    Member persianwhois's Avatar
    Join Date
    Apr 2007
    Location
    Mahallat
    Posts
    114

    Default

    Quote Originally Posted by approx View Post
    type

    Code:
    adduser username
    then make type

    Code:
    visudo
    if you don't know how to use sudo, please check

    Code:
    man sudo
    man visudo
    Thank you.
    i don't know anything about visudo
    please help me steb by step. please ...
    1- i type
    Code:
    adduser admin
    2-
    Code:
    visudo
    and show:
    Code:
    # sudoers file.
    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # See the sudoers man page for the details on how to write a sudoers file.
    #
    
    # Host alias specification
    
    # User alias specification
    
    # Cmnd alias specification
    
    # Defaults specification
    
    # User privilege specification
    root    ALL=(ALL) ALL
    
    # Uncomment to allow people in group wheel to run all commands
    # %wheel        ALL=(ALL)       ALL
    
    # Same thing without a password
    # %wheel        ALL=(ALL)       NOPASSWD: ALL
    
    # Samples
    # %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
    # %users  localhost=/sbin/shutdown -h now
    Regards,
    Masood Yarmohammadi

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 12-30-2009, 09:57 PM
  2. Replies: 1
    Last Post: 11-25-2007, 03:35 PM
  3. Does the user for cpanel is the root user for mysql?
    By hungboy in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-30-2006, 11:55 AM
  4. Using SSH or ROOT
    By Guntion in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-09-2006, 09:41 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube