How to obtain 'su' password in Lubuntu and gain admin rights?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I own a dell laptop configured with Win-10 Home Edition. For some project, I had to live boot Lubuntu v17.10.1 on it.
The issue is - while trying to get access to 'su account' I am unable to bypass it. It asks for a password, which I have no clue where to find.
I tried using the command - passwd Lubuntu, but it changed password of something else, and not 'su'.
Can someone please guide me how can I obtain password of 'su'? It's important for me to obtain admin rights.
Looking forward to some quick advice and assistance from experts here.
TIA.
su lubuntu
 |Â
show 3 more comments
up vote
0
down vote
favorite
I own a dell laptop configured with Win-10 Home Edition. For some project, I had to live boot Lubuntu v17.10.1 on it.
The issue is - while trying to get access to 'su account' I am unable to bypass it. It asks for a password, which I have no clue where to find.
I tried using the command - passwd Lubuntu, but it changed password of something else, and not 'su'.
Can someone please guide me how can I obtain password of 'su'? It's important for me to obtain admin rights.
Looking forward to some quick advice and assistance from experts here.
TIA.
su lubuntu
In this case, usesudo passwd
to set the root password if you really need to, but you should execute most commands that need superuser privilege withsudo
.
â Weijun Zhou
Jan 30 at 17:38
thanks @WeijunZhou, it worked. :) Also, will this technique of putting 'sudo' work for every command?
â mAnN
Jan 30 at 17:41
Not really by literally putting it before every command. You need to do a little bit work if you have redirections, but generally you can always achieve the goal withsudo
without explicitly invokingsu
. If you need something similar tosu
, you can just dosudo -i
.
â Weijun Zhou
Jan 30 at 17:47
1
ok. thanks @WeijunZhou will keep this point in mind and will see its practical implication as well to better understand it. Thanks a lot.
â mAnN
Jan 30 at 17:48
@WeijunZhou: It would probably be better to post answer as answers, rather than comments.
â dhag
Jan 30 at 19:03
 |Â
show 3 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I own a dell laptop configured with Win-10 Home Edition. For some project, I had to live boot Lubuntu v17.10.1 on it.
The issue is - while trying to get access to 'su account' I am unable to bypass it. It asks for a password, which I have no clue where to find.
I tried using the command - passwd Lubuntu, but it changed password of something else, and not 'su'.
Can someone please guide me how can I obtain password of 'su'? It's important for me to obtain admin rights.
Looking forward to some quick advice and assistance from experts here.
TIA.
su lubuntu
I own a dell laptop configured with Win-10 Home Edition. For some project, I had to live boot Lubuntu v17.10.1 on it.
The issue is - while trying to get access to 'su account' I am unable to bypass it. It asks for a password, which I have no clue where to find.
I tried using the command - passwd Lubuntu, but it changed password of something else, and not 'su'.
Can someone please guide me how can I obtain password of 'su'? It's important for me to obtain admin rights.
Looking forward to some quick advice and assistance from experts here.
TIA.
su lubuntu
asked Jan 30 at 17:34
mAnN
34
34
In this case, usesudo passwd
to set the root password if you really need to, but you should execute most commands that need superuser privilege withsudo
.
â Weijun Zhou
Jan 30 at 17:38
thanks @WeijunZhou, it worked. :) Also, will this technique of putting 'sudo' work for every command?
â mAnN
Jan 30 at 17:41
Not really by literally putting it before every command. You need to do a little bit work if you have redirections, but generally you can always achieve the goal withsudo
without explicitly invokingsu
. If you need something similar tosu
, you can just dosudo -i
.
â Weijun Zhou
Jan 30 at 17:47
1
ok. thanks @WeijunZhou will keep this point in mind and will see its practical implication as well to better understand it. Thanks a lot.
â mAnN
Jan 30 at 17:48
@WeijunZhou: It would probably be better to post answer as answers, rather than comments.
â dhag
Jan 30 at 19:03
 |Â
show 3 more comments
In this case, usesudo passwd
to set the root password if you really need to, but you should execute most commands that need superuser privilege withsudo
.
â Weijun Zhou
Jan 30 at 17:38
thanks @WeijunZhou, it worked. :) Also, will this technique of putting 'sudo' work for every command?
â mAnN
Jan 30 at 17:41
Not really by literally putting it before every command. You need to do a little bit work if you have redirections, but generally you can always achieve the goal withsudo
without explicitly invokingsu
. If you need something similar tosu
, you can just dosudo -i
.
â Weijun Zhou
Jan 30 at 17:47
1
ok. thanks @WeijunZhou will keep this point in mind and will see its practical implication as well to better understand it. Thanks a lot.
â mAnN
Jan 30 at 17:48
@WeijunZhou: It would probably be better to post answer as answers, rather than comments.
â dhag
Jan 30 at 19:03
In this case, use
sudo passwd
to set the root password if you really need to, but you should execute most commands that need superuser privilege with sudo
.â Weijun Zhou
Jan 30 at 17:38
In this case, use
sudo passwd
to set the root password if you really need to, but you should execute most commands that need superuser privilege with sudo
.â Weijun Zhou
Jan 30 at 17:38
thanks @WeijunZhou, it worked. :) Also, will this technique of putting 'sudo' work for every command?
â mAnN
Jan 30 at 17:41
thanks @WeijunZhou, it worked. :) Also, will this technique of putting 'sudo' work for every command?
â mAnN
Jan 30 at 17:41
Not really by literally putting it before every command. You need to do a little bit work if you have redirections, but generally you can always achieve the goal with
sudo
without explicitly invoking su
. If you need something similar to su
, you can just do sudo -i
.â Weijun Zhou
Jan 30 at 17:47
Not really by literally putting it before every command. You need to do a little bit work if you have redirections, but generally you can always achieve the goal with
sudo
without explicitly invoking su
. If you need something similar to su
, you can just do sudo -i
.â Weijun Zhou
Jan 30 at 17:47
1
1
ok. thanks @WeijunZhou will keep this point in mind and will see its practical implication as well to better understand it. Thanks a lot.
â mAnN
Jan 30 at 17:48
ok. thanks @WeijunZhou will keep this point in mind and will see its practical implication as well to better understand it. Thanks a lot.
â mAnN
Jan 30 at 17:48
@WeijunZhou: It would probably be better to post answer as answers, rather than comments.
â dhag
Jan 30 at 19:03
@WeijunZhou: It would probably be better to post answer as answers, rather than comments.
â dhag
Jan 30 at 19:03
 |Â
show 3 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Ubuntu assumes that the user should use sudo
instead of su
by default in their live images as well as their default installation. You can use sudo
to do most tasks that can be done by su
, but if you really need to change the superuser password, you can do
sudo passwd
This will prompt you for the new superuser password and you can set it. You can then use su
as usual.
Alternatively, you can obtain a login shell by sudo -i
, or a shell by sudo -s
. Both of which give you a shell with superuser privilege. As for the difference between -i
and -s
, check the manpages.
1
Thanks a lot #WeijunZhou, #dhag and #AntonyGibbs for your responses. I have marked the right answer and the issue is resolved. Thanks for your assistance.
â mAnN
Jan 30 at 21:14
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Ubuntu assumes that the user should use sudo
instead of su
by default in their live images as well as their default installation. You can use sudo
to do most tasks that can be done by su
, but if you really need to change the superuser password, you can do
sudo passwd
This will prompt you for the new superuser password and you can set it. You can then use su
as usual.
Alternatively, you can obtain a login shell by sudo -i
, or a shell by sudo -s
. Both of which give you a shell with superuser privilege. As for the difference between -i
and -s
, check the manpages.
1
Thanks a lot #WeijunZhou, #dhag and #AntonyGibbs for your responses. I have marked the right answer and the issue is resolved. Thanks for your assistance.
â mAnN
Jan 30 at 21:14
add a comment |Â
up vote
0
down vote
accepted
Ubuntu assumes that the user should use sudo
instead of su
by default in their live images as well as their default installation. You can use sudo
to do most tasks that can be done by su
, but if you really need to change the superuser password, you can do
sudo passwd
This will prompt you for the new superuser password and you can set it. You can then use su
as usual.
Alternatively, you can obtain a login shell by sudo -i
, or a shell by sudo -s
. Both of which give you a shell with superuser privilege. As for the difference between -i
and -s
, check the manpages.
1
Thanks a lot #WeijunZhou, #dhag and #AntonyGibbs for your responses. I have marked the right answer and the issue is resolved. Thanks for your assistance.
â mAnN
Jan 30 at 21:14
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Ubuntu assumes that the user should use sudo
instead of su
by default in their live images as well as their default installation. You can use sudo
to do most tasks that can be done by su
, but if you really need to change the superuser password, you can do
sudo passwd
This will prompt you for the new superuser password and you can set it. You can then use su
as usual.
Alternatively, you can obtain a login shell by sudo -i
, or a shell by sudo -s
. Both of which give you a shell with superuser privilege. As for the difference between -i
and -s
, check the manpages.
Ubuntu assumes that the user should use sudo
instead of su
by default in their live images as well as their default installation. You can use sudo
to do most tasks that can be done by su
, but if you really need to change the superuser password, you can do
sudo passwd
This will prompt you for the new superuser password and you can set it. You can then use su
as usual.
Alternatively, you can obtain a login shell by sudo -i
, or a shell by sudo -s
. Both of which give you a shell with superuser privilege. As for the difference between -i
and -s
, check the manpages.
answered Jan 30 at 19:12
Weijun Zhou
1,434119
1,434119
1
Thanks a lot #WeijunZhou, #dhag and #AntonyGibbs for your responses. I have marked the right answer and the issue is resolved. Thanks for your assistance.
â mAnN
Jan 30 at 21:14
add a comment |Â
1
Thanks a lot #WeijunZhou, #dhag and #AntonyGibbs for your responses. I have marked the right answer and the issue is resolved. Thanks for your assistance.
â mAnN
Jan 30 at 21:14
1
1
Thanks a lot #WeijunZhou, #dhag and #AntonyGibbs for your responses. I have marked the right answer and the issue is resolved. Thanks for your assistance.
â mAnN
Jan 30 at 21:14
Thanks a lot #WeijunZhou, #dhag and #AntonyGibbs for your responses. I have marked the right answer and the issue is resolved. Thanks for your assistance.
â mAnN
Jan 30 at 21:14
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%2f420739%2fhow-to-obtain-su-password-in-lubuntu-and-gain-admin-rights%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
In this case, use
sudo passwd
to set the root password if you really need to, but you should execute most commands that need superuser privilege withsudo
.â Weijun Zhou
Jan 30 at 17:38
thanks @WeijunZhou, it worked. :) Also, will this technique of putting 'sudo' work for every command?
â mAnN
Jan 30 at 17:41
Not really by literally putting it before every command. You need to do a little bit work if you have redirections, but generally you can always achieve the goal with
sudo
without explicitly invokingsu
. If you need something similar tosu
, you can just dosudo -i
.â Weijun Zhou
Jan 30 at 17:47
1
ok. thanks @WeijunZhou will keep this point in mind and will see its practical implication as well to better understand it. Thanks a lot.
â mAnN
Jan 30 at 17:48
@WeijunZhou: It would probably be better to post answer as answers, rather than comments.
â dhag
Jan 30 at 19:03