[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 438
  • Last Modified:

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

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
mohanupadhyay
Asked:
mohanupadhyay
  • 8
  • 7
1 Solution
 
upanwarCommented:
Give SUDO access to the user.

visudo is the command to achive this goal.
0
 
mohanupadhyayAuthor Commented:
Can you give me the exact command or steps to complete this.
0
 
upanwarCommented:
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
upanwarCommented:
# visudo [Press Enter]

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

<user name>  ALL=(ALL) ALL  


0
 
mohanupadhyayAuthor Commented:
I have done this but didn't work
0
 
upanwarCommented:
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
 
mohanupadhyayAuthor Commented:
it asked for password  I gave the password of newly created user then I got
sudo su-: command not found
0
 
upanwarCommented:
Its

# sudo su -
0
 
mohanupadhyayAuthor Commented:
command ran
but still do not have root privileges
0
 
upanwarCommented:
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
 
mohanupadhyayAuthor Commented:
I right clicks on any file and "Make Link" option is disabled
0
 
upanwarCommented:
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
 
mohanupadhyayAuthor Commented:
Can I get the same graphical functionality for newuser as I have for root
0
 
upanwarCommented:
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
 
mohanupadhyayAuthor Commented:
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

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

  • 8
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now