Solved

How can I give full access to a user as root have in red hat 5

Posted on 2011-02-23
15
417 Views
Last Modified: 2013-12-27
I created a user using command adduser
but the user created doesn't have all permission as root has
When I right click on any folder or file the "Make Link" option is disabled
I want newly created user to have all the rights as root user has
0
Comment
Question by:mohanupadhyay
  • 8
  • 7
15 Comments
 
LVL 12

Expert Comment

by:upanwar
ID: 34967702
Give SUDO access to the user.

visudo is the command to achive this goal.
0
 
LVL 3

Author Comment

by:mohanupadhyay
ID: 34967708
Can you give me the exact command or steps to complete this.
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34967710
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34967730
# visudo [Press Enter]

then make a entry as given below to given root permission to the user.

<user name>  ALL=(ALL) ALL  


0
 
LVL 3

Author Comment

by:mohanupadhyay
ID: 34967734
I have done this but didn't work
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34967740
now login with that perticular user and execute below given command.

sudo su- [Press Enter]

After executing this command, the user will be having root previleges.
0
 
LVL 3

Author Comment

by:mohanupadhyay
ID: 34967756
it asked for password  I gave the password of newly created user then I got
sudo su-: command not found
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
LVL 12

Expert Comment

by:upanwar
ID: 34967778
Its

# sudo su -
0
 
LVL 3

Author Comment

by:mohanupadhyay
ID: 34967797
command ran
but still do not have root privileges
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34967817
how did you find that you dont have the root privileges.

try to execute any command from /sbin/, you will get success. There will not be aby issue.
0
 
LVL 3

Author Comment

by:mohanupadhyay
ID: 34967826
I right clicks on any file and "Make Link" option is disabled
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34967867
If you want to create link for any file then you can use the ln command. What is the problem in that.

SUDO is a secure way to give full root access or limited root access to a particular user.
0
 
LVL 3

Author Comment

by:mohanupadhyay
ID: 34967896
Can I get the same graphical functionality for newuser as I have for root
0
 
LVL 12

Accepted Solution

by:
upanwar earned 250 total points
ID: 34967930
You can achive this goal by editing your /etc/passwd and modify the UID to 0 for that perticular user.

I hope this should work, but It is not a recommendad way and its a wrong way.
0
 
LVL 3

Author Closing Comment

by:mohanupadhyay
ID: 34968086
Yea averything worked but still not complete
I want to see the "Make Link" option enabled when I click on any file
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now