How to obtain 'su' password in Lubuntu and gain admin rights?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite
1












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.







share|improve this question




















  • 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











  • 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




    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














up vote
0
down vote

favorite
1












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.







share|improve this question




















  • 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











  • 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




    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












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





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.







share|improve this question












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.









share|improve this question











share|improve this question




share|improve this question










asked Jan 30 at 17:34









mAnN

34




34











  • 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











  • 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




    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











  • 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






  • 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










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.






share|improve this answer
















  • 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










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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






























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.






share|improve this answer
















  • 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














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.






share|improve this answer
















  • 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












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.






share|improve this answer












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.







share|improve this answer












share|improve this answer



share|improve this answer










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












  • 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












 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?