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 |
hmm, i think useradd [username] -m -G users,wheel,audio -s /bin/bash should work
hope this helps you! |
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 |
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: |
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:
Guy |
All times are GMT -5. The time now is 03:50 PM. |