Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Only root may add a user or group to the system

  1. #1
    Join Date
    Mar 2013
    Beans
    7

    Only root may add a user or group to the system

    Hi
    I'm trying to install Samba using this guide http://www.unixmen.com/howto-install...are-in-ubuntu/

    and at step 4 I'm getting this message "Only root may add a user or group to the system"

    all i'm typing in terminal is "adduser home-server" as thats the name i gave to this comp

    thanks in advance

  2. #2
    Join Date
    Mar 2012
    Location
    Near one of my computers
    Beans
    307
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Only root may add a user or group to the system

    To do certian things (commands) you need to be root, or have root priveledges. The root user is the administrative account. On ubuntu the root user has no set password. So to access root priveledges, a user can use the command `sudo' Super User DO. You will be prompted for your own password, and the command will be executed as root. Usually it is system commands you need sudo for.

    Here is the wiki page. https://help.ubuntu.com/community/RootSudo
    Try this:
    Code:
    sudo adduser home-server
    Often times in tutorials, they give the command you need to use but don't say you need to be root.

    Good luck,
    Kopkins

  3. #3
    Join Date
    Mar 2013
    Beans
    7

    Re: Only root may add a user or group to the system

    I am root but wont add my name so I can choose password and share files
    Last edited by toadinapintglass; March 29th, 2013 at 08:20 PM.

  4. #4
    Join Date
    Aug 2012
    Beans
    Hidden!

    Re: Only root may add a user or group to the system

    Quote Originally Posted by toadinapintglass View Post
    I am root...
    The root account is locked by default in Ubuntu, unless you specifically enabled it you are using your user account.

    Edit: It is possible the terminal is remembering your password for a limited time when repeatedly using "sudo". The elevated privileges are only for the individual terminal in use (and only for commands preceded by "sudo"), that is you are still operating as a normal user, with elevated privileges only applying to the commands preceded by sudo issued in the terminal itself.

    To gain root privileges for the adduser command, alter the 4th command in the instructions to,
    Code:
    sudo adduser <your-username>
    Replacing <your-username> with the actual username you want added to the system.

    Raising the privileges during this command is necessary (adding a user is an administrative task), this is done simply by adding "sudo" before the command; the password to use when asked is your user password and it will not show as it is entered in a terminal, another security feature.

    If the terminal shows nothing but a new prompt, then the command worked OK, any errors will trigger a terminal response/warning.
    Last edited by coldcritter64; March 29th, 2013 at 09:45 PM. Reason: more info & rewording for clarity

  5. #5
    Join Date
    Feb 2008
    Beans
    4,968
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Only root may add a user or group to the system

    The guide you are using may be excessively complex. If you just want to share a folder, step one is all you need to do. Then, in the File Manager, right-click on the folder and select sharing options. Issue 60 of Full Circle Magazine has details.

    By the way, it's generally a good idea to mention what version of Ubuntu you are using. File sharing is an example where Xubuntu is slightly different from Ubuntu, and there have been minor changes over the years.

  6. #6
    Join Date
    Mar 2013
    Beans
    7

    Re: Only root may add a user or group to the system

    I'm using ubuntu 12.10
    Just trying to make a home server that i can store all my films on and download torrents
    Also want to connect HDMI lead from server onto my TV, (Tv has no internet it isnt a smart TV)
    Need to be able to steam films to another computer and laptop
    Also want to be able to have remote excess to the server via laptop and computer
    so that i can add torrents and unrar them ect
    My server and my main computer will be connectted by ethernet cable and laptop
    via wireless...all be on same router and wont need to excess server outside of the router
    Also need to portition my harddrive so can av OS and space seperate

    What would the best Ubuntu to use as I've been trying to set up the server for last 3 days and seem to be going round in circles

    server specs
    Aspire-x3300
    memory : 2.7 GiB
    Processor : AMD Athlon (tm) II X3
    OS type : 32-bit
    Disk : 500GB

    Is there a better guide i can use?
    Last edited by toadinapintglass; March 30th, 2013 at 08:13 PM.

  7. #7
    Join Date
    Feb 2008
    Beans
    4,968
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Only root may add a user or group to the system

    You said "server" several times. Please confirm that you are actually running Ubuntu Desktop, which can do everything Ubuntu Server can do. It has a tiny bit of overhead, and about 10% of the learning curve. And it can't do at least one of the things you want to do.

    I have no experience with Steam. Oh, you probably meant "stream," did you mean as a DLNA Server, or just playing a video that happens to reside on a different computer? The second option, and everything else, is simple using Ubuntu Desktop. (Or Mint. Xubuntu or Lubuntu have a bit less overhead, but might require more work to do some of the things you want to do.)

    If it were my system, I would use Ubuntu Desktop 12.04 LTS, 64-bit version. Constant upgrades are a pain in the butt; by the time support for 12.04 ends, there won't be much happening in the 32-bit world. I've been running 64-bit for almost four years, and it only needed a little extra work once.

    You might find that the computer struggles to play 1080P video. It was low-spec three years ago, most particularly the Nvidia 9200 video adpater. If the TV is 720P, the computer should be OK. The "green" hard drive might also cause stuttering, especially across the network.
    http://compreviews.about.com/od/sff/...pire-X3300.htm

  8. #8
    Join Date
    Mar 2013
    Beans
    7

    Re: Only root may add a user or group to the system

    I am running Ubuntu Desktop 12.10 But now going to format the computer and put on Ubuntu Desktop 12.04 LTS, 64-bit version
    How much space will I need for this OS and programs so that i can portition it off?
    I'm planning on having all my media files on this machine so I can Stream it to another PC and Laptop...So will have to learn more about DLNA..whats the best way or program to use to be able to do this?
    My TV is only 720p and only planning on playing 720p or less on it
    Hopefully after This is up and running I'll Take out the dvd rom and add a better harddrive and make sure it isnt a green one
    Thanks for your advice

    forgot to mention I dont want no mouse or keyboard attached to this machine after set up
    Last edited by toadinapintglass; March 31st, 2013 at 04:31 PM.

  9. #9
    Join Date
    Feb 2008
    Beans
    4,968
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Only root may add a user or group to the system

    I have never set up a DLNA server, but this article looks like it has some answers:
    http://www.linux-magazine.com/Online...er-in-a-Minute

    If your root partition runs out of space, it's a disaster, so I tend to make mine twice as large as it needs to be. 12 GB should be lots, if you don't expect to play around with the program of the week. You still need to keep an eye on it; I have heard of runaway log files chomping up space at an alarming rate.

    You will want to learn about SSH, which is the usual approach to a remote server. Maybe Remote Desktop as well.

  10. #10
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Only root may add a user or group to the system

    I can't help you with your Deluge problem, sorry; it's been years and years since I've used Deluge.

    12 gigs should be a fine amount of space to put as your / partition.

    For streaming videos to PCs and laptops, you don't need DLNA. Just use Samba. You'd only need DLNA if you were streaming to a PS3 or something else that can use DLNA but not Samba.

    I notice you didn't follow Coldstream's advice about using 'sudo'; instead of "adduser", use "sudo adduser". This is because the user account you log into is not root, but the 'sudo' command allows you to run a command as root. It's a security measure that your user account is not all-powerful.

    You don't even need to do "sudo adduser" and "sudo passwd" - why not use the User Accounts program that comes with Ubuntu in the System Settings? You can easily create a user there.

    You're on the right track about using system-config-samba, that's what I use. Just remember that you need to use system-config-samba to create a user account in Samba for every ordinary user account you create in User Accounts. In other words, if you have a user on one of the laptops called "greg" who will be accessing the server, you need to use User Accounts or 'adduser' to create a user account for Greg, and also create a Samba account for Greg in system-config-samba.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •