How can I enable users to perform actions that require root permission? Can't I just add them to the...
This question already has an answer here:
'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?
1 answer
I added a user to the root group, but the user is still not able to perform operations that require root's permissions. What is the problem?
permissions root users
marked as duplicate by vidarlo, guiverc, Eric Carvalho, Elder Geek, Fabby Feb 12 at 22:16
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?
1 answer
I added a user to the root group, but the user is still not able to perform operations that require root's permissions. What is the problem?
permissions root users
marked as duplicate by vidarlo, guiverc, Eric Carvalho, Elder Geek, Fabby Feb 12 at 22:16
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
I know there is a sudo command... I just want to use commands which require root privileges without the sudo. I thought that everyone in root group can do anything, regardless if using sudo.
– John Ronald
Feb 2 at 20:49
add a comment |
This question already has an answer here:
'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?
1 answer
I added a user to the root group, but the user is still not able to perform operations that require root's permissions. What is the problem?
permissions root users
This question already has an answer here:
'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?
1 answer
I added a user to the root group, but the user is still not able to perform operations that require root's permissions. What is the problem?
This question already has an answer here:
'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?
1 answer
permissions root users
permissions root users
edited Feb 12 at 18:27
Zanna
51.1k13138242
51.1k13138242
asked Feb 2 at 20:17
John RonaldJohn Ronald
238
238
marked as duplicate by vidarlo, guiverc, Eric Carvalho, Elder Geek, Fabby Feb 12 at 22:16
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by vidarlo, guiverc, Eric Carvalho, Elder Geek, Fabby Feb 12 at 22:16
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
I know there is a sudo command... I just want to use commands which require root privileges without the sudo. I thought that everyone in root group can do anything, regardless if using sudo.
– John Ronald
Feb 2 at 20:49
add a comment |
I know there is a sudo command... I just want to use commands which require root privileges without the sudo. I thought that everyone in root group can do anything, regardless if using sudo.
– John Ronald
Feb 2 at 20:49
I know there is a sudo command... I just want to use commands which require root privileges without the sudo. I thought that everyone in root group can do anything, regardless if using sudo.
– John Ronald
Feb 2 at 20:49
I know there is a sudo command... I just want to use commands which require root privileges without the sudo. I thought that everyone in root group can do anything, regardless if using sudo.
– John Ronald
Feb 2 at 20:49
add a comment |
2 Answers
2
active
oldest
votes
Root login is disabled on Ubuntu. Adding user to root group will only affect permissions of files what have root group, for example edit some config files without sudo. Use sudo before a command to run that command as root, or sudo -i to get a root shell.
add a comment |
root login is disabled on Ubuntu. Adding user to the root group will only allow access to files that have root group, for example some config files. Being in the root group does NOT give any special privs.
To grant a user access to sudo, read man sudoers and add them to the sudo group.
adduser <username> sudo
The, once the other user logs out&in, or does a newgrp sudo, the other user will be able to preface his/her command with sudo to run as root, e.g. sudo wc -l /etc/shadow.
The commandadduseras given returns an error message. Perhaps you meantaddgroupinstead? Also, you largely duplicated what LeonidMew already answered; you really need to add more content to your answer to superseded his answer.
– Doug O'Neal
Feb 12 at 18:48
@DougO'Neal What exactly did you type? Did you replace<username>with the Name of the User? Did you pass exactly two parameters toadduser?
– waltinator
Feb 12 at 18:55
adduser <username> sudowhere <username> is the name of an existing user.
– Doug O'Neal
Feb 12 at 19:03
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Root login is disabled on Ubuntu. Adding user to root group will only affect permissions of files what have root group, for example edit some config files without sudo. Use sudo before a command to run that command as root, or sudo -i to get a root shell.
add a comment |
Root login is disabled on Ubuntu. Adding user to root group will only affect permissions of files what have root group, for example edit some config files without sudo. Use sudo before a command to run that command as root, or sudo -i to get a root shell.
add a comment |
Root login is disabled on Ubuntu. Adding user to root group will only affect permissions of files what have root group, for example edit some config files without sudo. Use sudo before a command to run that command as root, or sudo -i to get a root shell.
Root login is disabled on Ubuntu. Adding user to root group will only affect permissions of files what have root group, for example edit some config files without sudo. Use sudo before a command to run that command as root, or sudo -i to get a root shell.
edited Feb 12 at 18:28
Zanna
51.1k13138242
51.1k13138242
answered Feb 2 at 20:58
LeonidMewLeonidMew
659619
659619
add a comment |
add a comment |
root login is disabled on Ubuntu. Adding user to the root group will only allow access to files that have root group, for example some config files. Being in the root group does NOT give any special privs.
To grant a user access to sudo, read man sudoers and add them to the sudo group.
adduser <username> sudo
The, once the other user logs out&in, or does a newgrp sudo, the other user will be able to preface his/her command with sudo to run as root, e.g. sudo wc -l /etc/shadow.
The commandadduseras given returns an error message. Perhaps you meantaddgroupinstead? Also, you largely duplicated what LeonidMew already answered; you really need to add more content to your answer to superseded his answer.
– Doug O'Neal
Feb 12 at 18:48
@DougO'Neal What exactly did you type? Did you replace<username>with the Name of the User? Did you pass exactly two parameters toadduser?
– waltinator
Feb 12 at 18:55
adduser <username> sudowhere <username> is the name of an existing user.
– Doug O'Neal
Feb 12 at 19:03
add a comment |
root login is disabled on Ubuntu. Adding user to the root group will only allow access to files that have root group, for example some config files. Being in the root group does NOT give any special privs.
To grant a user access to sudo, read man sudoers and add them to the sudo group.
adduser <username> sudo
The, once the other user logs out&in, or does a newgrp sudo, the other user will be able to preface his/her command with sudo to run as root, e.g. sudo wc -l /etc/shadow.
The commandadduseras given returns an error message. Perhaps you meantaddgroupinstead? Also, you largely duplicated what LeonidMew already answered; you really need to add more content to your answer to superseded his answer.
– Doug O'Neal
Feb 12 at 18:48
@DougO'Neal What exactly did you type? Did you replace<username>with the Name of the User? Did you pass exactly two parameters toadduser?
– waltinator
Feb 12 at 18:55
adduser <username> sudowhere <username> is the name of an existing user.
– Doug O'Neal
Feb 12 at 19:03
add a comment |
root login is disabled on Ubuntu. Adding user to the root group will only allow access to files that have root group, for example some config files. Being in the root group does NOT give any special privs.
To grant a user access to sudo, read man sudoers and add them to the sudo group.
adduser <username> sudo
The, once the other user logs out&in, or does a newgrp sudo, the other user will be able to preface his/her command with sudo to run as root, e.g. sudo wc -l /etc/shadow.
root login is disabled on Ubuntu. Adding user to the root group will only allow access to files that have root group, for example some config files. Being in the root group does NOT give any special privs.
To grant a user access to sudo, read man sudoers and add them to the sudo group.
adduser <username> sudo
The, once the other user logs out&in, or does a newgrp sudo, the other user will be able to preface his/her command with sudo to run as root, e.g. sudo wc -l /etc/shadow.
answered Feb 2 at 21:36
waltinatorwaltinator
22.8k74169
22.8k74169
The commandadduseras given returns an error message. Perhaps you meantaddgroupinstead? Also, you largely duplicated what LeonidMew already answered; you really need to add more content to your answer to superseded his answer.
– Doug O'Neal
Feb 12 at 18:48
@DougO'Neal What exactly did you type? Did you replace<username>with the Name of the User? Did you pass exactly two parameters toadduser?
– waltinator
Feb 12 at 18:55
adduser <username> sudowhere <username> is the name of an existing user.
– Doug O'Neal
Feb 12 at 19:03
add a comment |
The commandadduseras given returns an error message. Perhaps you meantaddgroupinstead? Also, you largely duplicated what LeonidMew already answered; you really need to add more content to your answer to superseded his answer.
– Doug O'Neal
Feb 12 at 18:48
@DougO'Neal What exactly did you type? Did you replace<username>with the Name of the User? Did you pass exactly two parameters toadduser?
– waltinator
Feb 12 at 18:55
adduser <username> sudowhere <username> is the name of an existing user.
– Doug O'Neal
Feb 12 at 19:03
The command
adduser as given returns an error message. Perhaps you meant addgroup instead? Also, you largely duplicated what LeonidMew already answered; you really need to add more content to your answer to superseded his answer.– Doug O'Neal
Feb 12 at 18:48
The command
adduser as given returns an error message. Perhaps you meant addgroup instead? Also, you largely duplicated what LeonidMew already answered; you really need to add more content to your answer to superseded his answer.– Doug O'Neal
Feb 12 at 18:48
@DougO'Neal What exactly did you type? Did you replace
<username> with the Name of the User? Did you pass exactly two parameters to adduser?– waltinator
Feb 12 at 18:55
@DougO'Neal What exactly did you type? Did you replace
<username> with the Name of the User? Did you pass exactly two parameters to adduser?– waltinator
Feb 12 at 18:55
adduser <username> sudo where <username> is the name of an existing user.– Doug O'Neal
Feb 12 at 19:03
adduser <username> sudo where <username> is the name of an existing user.– Doug O'Neal
Feb 12 at 19:03
add a comment |
I know there is a sudo command... I just want to use commands which require root privileges without the sudo. I thought that everyone in root group can do anything, regardless if using sudo.
– John Ronald
Feb 2 at 20:49