How to sudo init 6 without passwd
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
In my /etc/sudoers.d/csinit
, I had insert the following line, but still cannot work.
testcs ALL=NOPASSWD: /sbin/rc6, /sbin/rc5
I had tried this too:
testcs ALL=(ALL) NOPASSWD: /sbin/rc6, /sbin/rc5
It will still ask for passwd when I sudo init 6
or init 5
.
sudo
add a comment |Â
up vote
0
down vote
favorite
In my /etc/sudoers.d/csinit
, I had insert the following line, but still cannot work.
testcs ALL=NOPASSWD: /sbin/rc6, /sbin/rc5
I had tried this too:
testcs ALL=(ALL) NOPASSWD: /sbin/rc6, /sbin/rc5
It will still ask for passwd when I sudo init 6
or init 5
.
sudo
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In my /etc/sudoers.d/csinit
, I had insert the following line, but still cannot work.
testcs ALL=NOPASSWD: /sbin/rc6, /sbin/rc5
I had tried this too:
testcs ALL=(ALL) NOPASSWD: /sbin/rc6, /sbin/rc5
It will still ask for passwd when I sudo init 6
or init 5
.
sudo
In my /etc/sudoers.d/csinit
, I had insert the following line, but still cannot work.
testcs ALL=NOPASSWD: /sbin/rc6, /sbin/rc5
I had tried this too:
testcs ALL=(ALL) NOPASSWD: /sbin/rc6, /sbin/rc5
It will still ask for passwd when I sudo init 6
or init 5
.
sudo
edited Mar 15 at 6:37
Olorin
1,15711
1,15711
asked Mar 15 at 3:55
user803473
94
94
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
You have set NOPASSWD
for rc6
and rc5
. If you don't want to be asked for a password for init
, then you'll have to add those to the sudoers rule as well. Something like:
testcs ALL=(ALL) NOPASSWD: /sbin/rc6, /sbin/rc5, /sbin/init [56]
(Since you can specify wildcards in the arguments, [...]
matching any character in the list.)
Yeah! It's work! Thank you so much. Do you know where is the command " ifconfig e1000g1 up" file location? I tried /sbin/ifconfig but the file is for ifconfig -a command only.
â user803473
Mar 15 at 7:05
@user803473 the same/sbin/ifconfig
can be used forifconfig ... up
as well, as far as I know.
â Olorin
Mar 15 at 7:24
Since you seem to be new, you might want to consider accepting an answer if it worked for you. See unix.stackexchange.com/help/someone-answers
â Olorin
Mar 15 at 7:40
Okay, done :) Thanks for guiding.
â user803473
Mar 16 at 2:24
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
You have set NOPASSWD
for rc6
and rc5
. If you don't want to be asked for a password for init
, then you'll have to add those to the sudoers rule as well. Something like:
testcs ALL=(ALL) NOPASSWD: /sbin/rc6, /sbin/rc5, /sbin/init [56]
(Since you can specify wildcards in the arguments, [...]
matching any character in the list.)
Yeah! It's work! Thank you so much. Do you know where is the command " ifconfig e1000g1 up" file location? I tried /sbin/ifconfig but the file is for ifconfig -a command only.
â user803473
Mar 15 at 7:05
@user803473 the same/sbin/ifconfig
can be used forifconfig ... up
as well, as far as I know.
â Olorin
Mar 15 at 7:24
Since you seem to be new, you might want to consider accepting an answer if it worked for you. See unix.stackexchange.com/help/someone-answers
â Olorin
Mar 15 at 7:40
Okay, done :) Thanks for guiding.
â user803473
Mar 16 at 2:24
add a comment |Â
up vote
1
down vote
accepted
You have set NOPASSWD
for rc6
and rc5
. If you don't want to be asked for a password for init
, then you'll have to add those to the sudoers rule as well. Something like:
testcs ALL=(ALL) NOPASSWD: /sbin/rc6, /sbin/rc5, /sbin/init [56]
(Since you can specify wildcards in the arguments, [...]
matching any character in the list.)
Yeah! It's work! Thank you so much. Do you know where is the command " ifconfig e1000g1 up" file location? I tried /sbin/ifconfig but the file is for ifconfig -a command only.
â user803473
Mar 15 at 7:05
@user803473 the same/sbin/ifconfig
can be used forifconfig ... up
as well, as far as I know.
â Olorin
Mar 15 at 7:24
Since you seem to be new, you might want to consider accepting an answer if it worked for you. See unix.stackexchange.com/help/someone-answers
â Olorin
Mar 15 at 7:40
Okay, done :) Thanks for guiding.
â user803473
Mar 16 at 2:24
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
You have set NOPASSWD
for rc6
and rc5
. If you don't want to be asked for a password for init
, then you'll have to add those to the sudoers rule as well. Something like:
testcs ALL=(ALL) NOPASSWD: /sbin/rc6, /sbin/rc5, /sbin/init [56]
(Since you can specify wildcards in the arguments, [...]
matching any character in the list.)
You have set NOPASSWD
for rc6
and rc5
. If you don't want to be asked for a password for init
, then you'll have to add those to the sudoers rule as well. Something like:
testcs ALL=(ALL) NOPASSWD: /sbin/rc6, /sbin/rc5, /sbin/init [56]
(Since you can specify wildcards in the arguments, [...]
matching any character in the list.)
answered Mar 15 at 5:34
Olorin
1,15711
1,15711
Yeah! It's work! Thank you so much. Do you know where is the command " ifconfig e1000g1 up" file location? I tried /sbin/ifconfig but the file is for ifconfig -a command only.
â user803473
Mar 15 at 7:05
@user803473 the same/sbin/ifconfig
can be used forifconfig ... up
as well, as far as I know.
â Olorin
Mar 15 at 7:24
Since you seem to be new, you might want to consider accepting an answer if it worked for you. See unix.stackexchange.com/help/someone-answers
â Olorin
Mar 15 at 7:40
Okay, done :) Thanks for guiding.
â user803473
Mar 16 at 2:24
add a comment |Â
Yeah! It's work! Thank you so much. Do you know where is the command " ifconfig e1000g1 up" file location? I tried /sbin/ifconfig but the file is for ifconfig -a command only.
â user803473
Mar 15 at 7:05
@user803473 the same/sbin/ifconfig
can be used forifconfig ... up
as well, as far as I know.
â Olorin
Mar 15 at 7:24
Since you seem to be new, you might want to consider accepting an answer if it worked for you. See unix.stackexchange.com/help/someone-answers
â Olorin
Mar 15 at 7:40
Okay, done :) Thanks for guiding.
â user803473
Mar 16 at 2:24
Yeah! It's work! Thank you so much. Do you know where is the command " ifconfig e1000g1 up" file location? I tried /sbin/ifconfig but the file is for ifconfig -a command only.
â user803473
Mar 15 at 7:05
Yeah! It's work! Thank you so much. Do you know where is the command " ifconfig e1000g1 up" file location? I tried /sbin/ifconfig but the file is for ifconfig -a command only.
â user803473
Mar 15 at 7:05
@user803473 the same
/sbin/ifconfig
can be used for ifconfig ... up
as well, as far as I know.â Olorin
Mar 15 at 7:24
@user803473 the same
/sbin/ifconfig
can be used for ifconfig ... up
as well, as far as I know.â Olorin
Mar 15 at 7:24
Since you seem to be new, you might want to consider accepting an answer if it worked for you. See unix.stackexchange.com/help/someone-answers
â Olorin
Mar 15 at 7:40
Since you seem to be new, you might want to consider accepting an answer if it worked for you. See unix.stackexchange.com/help/someone-answers
â Olorin
Mar 15 at 7:40
Okay, done :) Thanks for guiding.
â user803473
Mar 16 at 2:24
Okay, done :) Thanks for guiding.
â user803473
Mar 16 at 2:24
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430307%2fhow-to-sudo-init-6-without-passwd%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password