LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-13-2003, 07:37 AM   #1
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
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
 
Old 10-13-2003, 07:53 AM   #2
chup
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: Ubuntu (Feisty)
Posts: 280

Rep: Reputation: 31
hmm, i think useradd [username] -m -G users,wheel,audio -s /bin/bash should work
hope this helps you!
 
Old 10-13-2003, 07:57 AM   #3
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Post

Have you seen this site?

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

Hope that helps. It is a big one.

 
Old 10-13-2003, 08:02 AM   #4
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
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.

 
Old 10-13-2003, 10:11 AM   #5
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Original Poster
Rep: Reputation: 37
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding new users Brian Du Preez Linux - Newbie 1 10-04-2005 12:33 PM
Adding many users? ricardocastro Programming 4 02-19-2002 01:22 PM
Adding new users Fried Linux - Newbie 4 09-24-2001 10:37 AM
Adding users... philfighter Linux - General 3 07-23-2001 10:48 PM
adding Users hextex Linux - Newbie 5 06-08-2001 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration