LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-30-2005, 12:17 AM   #1
anandabrata
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
Unix Login - Access Denied


Hi,

I wanted to create a new user on my Linux machine. So first I created a new group called projuser using the command

groupadd -f projuser i.e groupadd -f <groupname>

Then I created a new user using the command.

useradd -d /home/anand -g projuser -p pwd anand i.e

useradd -d <home_directory> -g <initial_group> -p <password> <user_name>

But when I am trying to login I get an error with username : anand and password : pwd , i get an error saying Access Denied. I think it is a problem with the group that I have given. Do I need to anything additionally after creating the group.

Any help is welcome.

Regards,
Anand
 
Old 11-30-2005, 12:34 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
If this user is going to have a shell et al, you probably want to give their initial group as users, and then additional groups (-G) as whatever else, such is the case as projuser.

Cool
 
Old 11-30-2005, 12:59 AM   #3
anandabrata
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the inputs. But tell me something what if I want the new user to have a group created by me itself, in this case projuser. So do I need to need to give additionaly permissions to the group. Or anything else. Kindly let me know.

Thnks
Anand
 
Old 12-01-2005, 02:10 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
If you want a new user, or set of users to belong to a group, you assign that with the -G option. This is assuming they will have accounts on the box and access to the box. If they are virtual users (samba users, website logins, virtual email) then they don't need to have actual accounts and don't necessarily need to belong to the users group (-g users).

To give your users permission to a specific folder, and only certain users, that's the case where a special group (projuser) would come into play. Not every user on your system necessarily needs access to that folder, so you give specific users access by adding those users to a group you've created (projuser) and own that folder to that group.

HTH

Cool
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Denied aje Linux - Newbie 7 10-18-2004 09:48 PM
SSH login ... access denied (suse 9.1) saxxon1 Linux - Networking 3 09-14-2004 03:34 PM
Access denied?? Jaster Linux - Software 9 07-25-2004 08:42 PM
Access is Denied? sKiBa Linux - Newbie 7 06-12-2004 11:28 AM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 03:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration