LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Adding New Users (https://www.linuxquestions.org/questions/linux-general-1/adding-new-users-103382/)

guygriffiths 10-13-2003 07:37 AM

Adding New Users
 
I have installed LFS, and it works fine as root, but when I try to add new users (adduser -m guy), they seem ok, but cannot compile new programs due to various restrictions, which probably shouldn't be there.
Does anyone know of a guide to setting up new users and setting all of the permissions correctly to allow them to do various things?
A link to a good HOWTO or tutorial would be great
Guy

chup 10-13-2003 07:53 AM

hmm, i think useradd [username] -m -G users,wheel,audio -s /bin/bash should work
hope this helps you!

dalek 10-13-2003 07:57 AM

Have you seen this site?

http://docs.mandragor.org/files/Oper...om_scratch_en/

Hope that helps. It is a big one. :study:

:D :D :D

dalek 10-13-2003 08:02 AM

This from the latest how to ver 5.0. I forgot I had downloaded it.

Adding the user lfs

When logged in as root, making a single mistake can damage or even wreck your system. Therefore we recommend that you build the packages in this chapter as an unprivileged user. You could of course use your own user name, but to make it easier to set up a clean work environment we'll create a new user lfs and use this one during the installation process. As root, issue the following commands to add the new user:

useradd -s /bin/bash -m lfs
passwd lfs

Now grant this new user lfs full access to $LFS/tools by giving it ownership of the directory:

chown lfs $LFS/tools

Next, login as user lfs. This can be done via a virtual console, through a display manager, or with the following substitute user command:

su - lfs

The "-" instructs su to start a new, clean shell.

That should get you off to a good start.

:D :D :D :study:

guygriffiths 10-13-2003 10:11 AM

Thanks for your help, but unfortunately, I have already done that. It was just for building a static system, and the lfs user is only present on the host system. I have followed that guide all the way through, and also installed many of the packages from BLFS. I have now added users to the new system, but they are not allowed to do everything they should be allowed to do (like compile files - an ld error occurs)

chub:
Quote:

hmm, i think useradd [username] -m -G users,wheel,audio -s /bin/bash should work
Thanks, I will try this. The only option I hadn't done was the -G users, which adds to the users group. I'm not entirely sure this will work but I'll give it a go
Guy


All times are GMT -5. The time now is 03:50 PM.