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 04-20-2011, 12:48 AM   #1
kishorekumar
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
problem with new user


Hello Every one......

i've query regarding,user creation in Linux( RHEL 5), i.e, i've created a user ([root@localhost ~]#useradd slash ) and switched into that user, but am not able to run commands in it......It's displaying a message saying,

PERMISSION DENIED.....

...Do we need to provide any permissions while creating a user
if so plz message me how to do it, in detail...........

Thank You......
 
Old 04-20-2011, 01:12 AM   #2
prasad.kr
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Add your user slash to /etc/sudoers file

Hi,
step 1 : Login as root, type visudo

step 2: There are different level of permissions are there. suppose you want run network related commands u can give permisssion to only those commands

step 3: To give full permissions look for

root ALL=(ALL) ALL
myusername ALL=(ALL) ALL

usage example

sudo service network restart [enter]
pssword:username-password
 
Old 04-20-2011, 01:12 AM   #3
mayursingru
Member
 
Registered: Nov 2010
Location: Pune
Distribution: CentOS
Posts: 51

Rep: Reputation: 5
Hi kishorekumar,
We don't need to provide any permissions while creating a new user. You can check few default parameters in through
Code:
 cat /etc/default/useradd
. A normal user is not privileged to run few commands you can go through
Code:
 cat /etc/sudoers
. A detailed explanation is provided on who can and who cannot run various commands.
 
Old 04-20-2011, 01:21 AM   #4
CFet
Member
 
Registered: Mar 2011
Location: BC, Canada
Distribution: Slackware 13.1
Posts: 47

Rep: Reputation: 0
Hi kishorekumar,

I found some more tidbits for you. Hopefully they can resolve and clarify the user permission issues you are having.

If you haven't already found it, RHEL online user documentation can be found here:

http://docs.redhat.com/docs/en-US/Re...nd_Groups.html

While I personally don't use RHEL, these two PDFs will likely explain all you need to know regarding user permissions in RHEL. These pdfs are for RHEL4. I am unsure if there are significant changes between versions 4 and 5. I highly doubt that these documents will be of no use to the RHEL 5 user.

The first I think you will find the most useful is here:
RHEL4 - Introduction to System Administration
www.centos.org/docs/4/pdf/rhel-isa-en.pdf

In particular, check out chapter 6 entitled "Managing user accounts and resource access".

The second more generalized RHEL document is available here:
RHEL4 - Reference Guide
www.centos.org/docs/4/pdf/rhel-rg-en.pdf

Regards and good luck!
Chris
 
Old 04-20-2011, 09:56 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
RHEL 5 Admin/HOWTO http://www.linuxtopia.org/online_boo...ion/index.html
 
Old 04-21-2011, 10:00 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,258

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
Quote:
Originally Posted by kishorekumar View Post
Hello Every one......
i've query regarding,user creation in Linux( RHEL 5), i.e, i've created a user ([root@localhost ~]#useradd slash ) and switched into that user, but am not able to run commands in it......It's displaying a message saying,

PERMISSION DENIED....

Do we need to provide any permissions while creating a user if so plz message me how to do it, in detail...........
No, and please spell out your words.

You may be getting permission denied for several reasons. First, when you made the user, how did the users home directory get made?? If you made it as root, chances are it's OWNED by root, so you won't be able to read it. Use "useradd -m -d /path/to/home <userid>", which will make the home directory with the correct permissions. You can also do a "chown" on the home directory. Or, the command(s) you're trying to run need to be run as root, so ANY user would get the "permission denied" message. What are you trying to do?
 
  


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
Problem in User name selvkaumarmvs Red Hat 0 03-23-2009 11:37 PM
Samba sharing problem (user permission problem) beikokutn Linux - Software 4 03-11-2008 06:55 AM
C program to see user log on in system and print user with real user name also naveen245 Programming 2 12-21-2005 01:53 AM
problem with new user ..need help ? SlackwareMan Linux - General 4 08-15-2004 06:24 AM
Slackware 9.0 Lan Card problem and a problem adding a user! BmxFace Slackware 1 07-03-2003 08:05 PM

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

All times are GMT -5. The time now is 10:05 PM.

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