DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ok serious yet dumb question. been using ubuntu based os's. ubuntu is based on debian. so why - in ubuntu=based stuff sudo is used? and in debian su is used. i was told by one guy you can set it up for su but on their forum (debian users forum) when i asked this about using su and not sudo because i couldn't get something to work until i was told use su.... and then you use commands without su in front of them and also i figured out after some search that you have to exit at the end too or terminal is still open/in use/running. anyway - getting back to the people on the debian forum - 1 was nice and told me there is an option for sudo that you have to do through some commands or some such but all the others were so nasty and arrogant and said sudo is no good and no need and use su - that is the only way and many said go search on your own.... so why? what is better about one than another is there is? and why the 2 different ways and uses? not very eloquent but you may see where i am going with this. thanks
su and sudo are two different tools. See man pages:
Code:
The su command is used to become another user during a login session.
sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.
both of them are often misused (not to speak about the completely meaningless mixture of them: sudo su - using both of them in the same time).
The debate over su vs. sudo is one of the most significant ones in the Linux world (search the web for much of the debate), up there with systemd, pulseaudio etc., with both sides strongly arguing their case. In the end, you're probably best to accept that Ubuntu and non-Ubuntu distros (in general) do this differently, and just go with the flow.
ok thanks - i will check it out tomorrow when we have storms - been a long day woke at 3:30 and out in the vineyard and garden and cut grass all day.
hydrurga - i know and i agree and i will just go with the flow - have no chaice other than to set deb to use sudo but i was curious - i am ok with doing both---- just really trying to understand it from my lower level. i see these arguments all over the forums and not opening a can of worms - just seem rather weird or strange that there isn't a common denominator as such other than being based on debian. know what i mean???
Distribution: Slackware/Salix while testing others
Posts: 1,718
Rep:
sudo allows logging of commands/executions and you can restrict the power granted to the sudo user, su makes you God of the computer and that lightning can create and destroy, its up to you. Personally I prefer to use su -c "command" which requires me to enter the root password and then after completing the task returns to regular user, thus I avoid leaving the su - terminal open...funny how I still forget that its open after all these years. With su -c "command", no worries about that.
ok thanks - i will check it out tomorrow when we have storms - been a long day woke at 3:30 and out in the vineyard and garden and cut grass all day.
hydrurga - i know and i agree and i will just go with the flow - have no chaice other than to set deb to use sudo but i was curious - i am ok with doing both---- just really trying to understand it from my lower level. i see these arguments all over the forums and not opening a can of worms - just seem rather weird or strange that there isn't a common denominator as such other than being based on debian. know what i mean???
:-)))))
Indeed. Sudo has been here with su for a long while though, with both being used. It was Ubuntu who decided to lock the root password and make their systems sudo only by default for security reasons (essentially to protect users from themselves), although it is reasonably easy to get round this and create a root password if you are so inclined. However, this jarred with some who felt that sudo was not being used for the purposes for which it was intended. Thus began the su-sudo wars.
thanks again - need another 64 oz of coffee tomorrow am to check this all out. so there is a security element and i did know that su was the top level access i guess you might say. give me some time tomorrow to check out all the info... thanks again
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.