PDA

View Full Version : How Do I Add a New User?



jMon54
12-08-2004, 02:19 PM
Something happened on my 3.6 hard drive setup. My user's password no longer works. Before that happened I was having all kinds of problems with apps not working. I would like to just add a new user. I can log on as root no problem. How do I add a user with "power-user" rights as in Windows?

UnderScore
12-08-2004, 06:16 PM
Google search for add a new user in linux (http://www.google.com/search?q=add+a+user+in+linux&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official)
This is a good resource for adding users. (http://www.icon.co.za/~psheer/book/node14.html.gz#SECTION001450000000000000000)
Google search for sudo (http://www.google.com/search?hl=en&lr=&c2coff=1&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=sudo&btnG=Search)
As found in google search Using sudo to add "power user" acccess (http://www.aplawrence.com/Basics/sudo.html).

I hope this helps.
James

CrashedAgain
12-09-2004, 01:44 AM
You can add a new user in Knoppix with Kuser. It's under the 'Systems' menu item.

jMon54
12-09-2004, 09:41 PM
As a test, I modified the sudoers file (using visudo) giving a user the same rights as root - and I can open it and see my changes took, but yet when I am logged in as the user I still get prompted for the root password whenever I want to do anything the root can do.

KanotixUser
12-10-2004, 04:27 AM
As a test, I modified the sudoers file (using visudo) giving a user the same rights as root - and I can open it and see my changes took, but yet when I am logged in as the user I still get prompted for the root password whenever I want to do anything the root can do.

Are you using the 'sudo' command?

jMon54
12-10-2004, 03:27 PM
jMon54 wrote:
As a test, I modified the sudoers file (using visudo) giving a user the same rights as root - and I can open it and see my changes took, but yet when I am logged in as the user I still get prompted for the root password whenever I want to do anything the root can do.



Are you using the 'sudo' command?

I'm not sure what you mean...

Here's what I did: I opened the console, typed 'visudo', then opened the sudoers file in an editor and made my changes. If I look at the file, the changes are indeed there.

Markus
12-10-2004, 06:44 PM
Post the /etc/sudoers file and give an example of what your trying to do with the sudo command (syntax).

jMon54
12-10-2004, 08:21 PM
Post the /etc/sudoers file and give an example of what your trying to do with the sudo command (syntax).

from knoppix root I:

visudo

then i open the sudoers file with kwrite, edit and save

here's the file:
# sudoers file.
#
# This file MUST be edited with the "visudo" command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL) ALL
jMon ALL=(ALL) ALL
# KNOPPIX WARNING: This allows the unprivileged knoppix user to start commands as root
# KNOPPIX WARNING: This is totally insecure and (almost) makes knoppix a second root account.
# KNOPPIX WARNING: Never allow external access to the knoppix user!!!
#knoppix ALL=NOPASSWD: ALL

Markus
12-10-2004, 08:30 PM
Looks ok but how are you using sudo. Being in sudoers means you can do rooty stuff by adding sudo in front of the command.
Example: sudo nano /etc/lilo.conf

BTW, If you want sudo to work without a password you need to use: jMon ALL=NOPASSWD: ALL but take note of the warnings in the sudoers file.