Linux - NewbieThis 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
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.
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.
I just installed Ubuntu 7.10 server (no GUI). I created one user. What do I do next? If this was Windows, I might make the user a member of the admin group or power users group, tweak the profile settings, and that kind of stuff.
What do I do on Linux to make this user account usable for completing the setup and installation tasks I'll need to do?
Thanks.
Last edited by Mountain; 11-07-2007 at 03:34 PM.
Reason: typo
on ubuntu, your first user should already be a member of the group "admin", which grants you sudo access.
To perform a task you'd normally need to do as root, you'll just want to prefix it "sudo ls" instead of "ls".
You can also use "sudo -s" or "sudo su - " to obtain a shell either as a privileged version of you, or as the actual user root.
You can add a user to given groups using gpasswd (eg: gpasswd -a username groupname).
You may also want to check out the man pages for aptitude, to get updates and install software.
Initially my only user was "root". I created one more user with 'adduser'. But I suspected I should set permissions and group membership next... still not sure how to do that.
Where do I find info about which user accounts and groups exist? I learned about the user command for printing who is logged in, but I want to see which accounts exist.
Is aptitude related to apt-get? Looks like it is... Thanks.
"usermod -g" sets a user's primary group. gpasswd is good for adding a user to additional groups.
For starters, I suggest "man 5 passwd", "man 5 shadow" and "man 5 group" to get the most basic info. The "whatis" and "apropos" commands are pretty handy, and if you're new to linux in general you should get comfortable with them and the man pages.
For a quick summary, user credentials are stored in /etc/passwd (world-readable, defines login, userid, primary group membership, shell, some other meta-info, but unintuitively doesn't include password hashes despite the name), /etc/shadow (stores just username, uid, password hash and some other password meta-info you probably don't care about right now, definitely should be readable only by root), and /etc/group (defines what groups exist, and what additional groups the users are in). You should probably be somewhat familiar with the contents of all three files.
As far as learning a lot about a lot, honestly I'd recommend either O'reilley's "Essential System Administration" ... or if you're feeling in more of a "free as in beer" mood, consider reading over the linux documentation project's sysadmin guide.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.