LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-31-2010, 02:10 AM   #1
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
su and not sudo?


why in mandriva it is su and not sudo to be root?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-31-2010, 02:17 AM   #2
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Slackware and Fedora
Posts: 234

Rep: Reputation: 2
Post

su stands for super user as I understand and sudo stands for super user do.

Well if you want sudo you could install it.

I use su to switch between users its default is root but you can do something like this
Code:
su darkstarbyte
that would log me in my darkstarbyte account. If thats what your looking for then I hope I answered it.
 
Old 10-31-2010, 02:17 AM   #3
Amdx2_x64
Member
 
Registered: Jun 2008
Distribution: Left LQ. Mods are too Rude!
Posts: 598

Rep: Reputation: 50
I think it is just how a Distribution has things set up by default. For example Debian does not have sudo by default, however it is easy enough to set it up. Which I do since I am a fan of sudo.

I think sudo is safer in my opinion and just better all around. However there are times that it would be better just to log in, for example, as root in the terminal so I don't have to type sudo all the time, depending on what I am doing. I do believe in Mandriva you can set up sudo. If I am wrong about sudo and Mandriva someone please correct me.

Sudo is short term in a sense. Su logs you in as root and it stays for the whole session. (Edit: However as said above you can also use su to log in as another non-root user.)

I really hope I explained this correctly. I never thought about it in words before, let alone try to explain it to another.

Last edited by Amdx2_x64; 10-31-2010 at 02:22 AM.
 
Old 10-31-2010, 02:24 AM   #4
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Slackware and Fedora
Posts: 234

Rep: Reputation: 2
Post

He is right amdx2 64.

sudo is safer in a sense because your not logged in as root the whole time. The down side to sudo is you have to keep typing it in again and again there is a way so you don't have to do it but its like using su.
 
Old 10-31-2010, 07:29 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865Reputation: 4865
I personally don't think that sudo is safer (you can make as much damage as with su), but thats my opinion and there were already flamewars about this topic. With su I can launch single commands without logging in to a new session, just use su -c.

@TigerLinux: It mostly depends on the distribution. In Ubuntu for example, you can't login as root, it is a design decision to use sudo. Other distributions made other decisions.
 
Old 11-01-2010, 05:49 AM   #6
rjcooks
Member
 
Registered: Jan 2008
Location: NE AR USA
Distribution: Manjaro Linux; Previously RPM based: openSUSE ...Mandriva-2010.1(still running!).
Posts: 84

Rep: Reputation: 21
Quote:
Originally Posted by TigerLinux View Post
why in mandriva it is su and not sudo to be root?
Using sudo on Mandriva, or any other distro for that matter, is just as valid a way of handling root authorization as *buntu.
Both su & sudo are installed by default for Mandriva, however sudo can be removed as an additional security feature for MDV. (su, as part of coreutils, cannot)
If $USER is unable to use sudo it is most likely because the $USER has not been authorized to use it. The person authorized to be root must run visudo( edits the sudoers file ) to add users that are authorized to have root privileges and to setup the usage method.

Please read manual pages, man sudo and man su, and you will find that these are both ''switch user'' commands and only associated to the superuser root account because that is probably the most common usage. However if a user is having trouble with an account, performing su $USER is one very quick way of root *seeing* what the user is experiencing.
The su is an administrator's tool meant for the person assigned to the root account while sudo usage is targeted for trusted and competent users who must have usage restricted and monitored. E.g., the su is in the restricted path (/bin/su) while sudo is not(/usr/bin/sudo).
 
2 members found this post helpful.
Old 11-04-2010, 02:53 AM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,412
Blog Entries: 33

Rep: Reputation: 222Reputation: 222Reputation: 222
Hi, this is how I setup sudo on my system.

I had to put it on my blog due to space requirements. (Screen shots.)

Here's the link...

http://glennwaller.blogspot.com/2010...-and-sudo.html

Regards Glenn
 
Old 11-26-2010, 06:05 AM   #8
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,412
Blog Entries: 33

Rep: Reputation: 222Reputation: 222Reputation: 222
Has this (posting to blog) been of any help??

Please be candid. (I'm still learning)

Regards Glenn
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Ultimate Sudo FAQ To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 02:36 AM
Problem with SUDO : sudo: pam_authenticate: Module is unknown cristoph_ Linux - Software 2 03-02-2009 08:12 PM
sudo blkid vs. sudo fdisk -l problems alienexplorers Linux - Newbie 1 01-13-2009 01:35 AM
LXer: sudo, or not sudo: that is the question LXer Syndicated Linux News 0 02-07-2008 06:40 PM
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration