LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


View Poll Results: Which of the following uses of sudo do you prefer to gain root?
sudo -s 5 12.20%
sudo -i 10 24.39%
sudo su 24 58.54%
sudo bash 5 12.20%
Multiple Choice Poll. Voters: 41. You may not vote on this poll

Reply
  Search this Thread
Old 10-14-2010, 09:54 PM   #31
iamtim
LQ Newbie
 
Registered: May 2010
Posts: 4

Rep: Reputation: 0

Nevermind, move along, nothing to see here.

Last edited by iamtim; 10-14-2010 at 10:01 PM. Reason: Had shoved foot deeply into mouth.
 
Old 10-14-2010, 11:44 PM   #32
coltree
Member
 
Registered: Nov 2003
Location: Jacobs Well, Queensland AU
Distribution: OpenBSD
Posts: 102
Blog Entries: 1

Rep: Reputation: 34
Hi iamtim,

Here is the message that has just been posted:
***************
So where does 'su -c' fit into all this? I've seen that used a lot and been wondering about the merits of that vs. sudo.
***************

I could put in here about the merits of using man

e.g. man sudo

the alternative of this is the *nix standard R.T.F.M.

or be really nice to a newby and actually help a bit

*quote from man su

The options which apply to the su command are:

-c, --command COMMAND
Specify a command that will be invoked by the shell using its -c.

if you look back to my last post you'll see how I use sudo
and the advantage I find is having the configuration of /etc/sudoers
mine is dead simple but you can setup quite a complex permission structure
for all sorts of things

man sudo has examples

For a newby from windows, etc the security advantage of *nix is permissions
which operate consistently throughout the *nix system
permission to browse a directory, read a file, write a file, execute a file, etc.



for any newby (with too much time on their hands) install doc-linux-html
grab a slab of beers, lock yourself away and read the HOWTOs and FAQs
and the first thing to look at when in doubt is man (whatever-instruction)
 
Old 10-15-2010, 05:51 PM   #33
iamtim
LQ Newbie
 
Registered: May 2010
Posts: 4

Rep: Reputation: 0
Please note the edit on my post.
 
Old 10-15-2010, 06:24 PM   #34
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Rep: Reputation: 41
Quote:
Originally Posted by Kenny_Strawn View Post
Code:
sudo init 1
Code:
sudo passwd
I tried init 1 and telinit 1 twenty times, and it wouldn't work and locked up on top of that every single time, and I read about it and saw that there might be a way to do it but you have to change your configuration files around manually.
What I mean is, by default not having a root account and not being able to switch to single user mode are problems, in my opinion. It's just strange to have to go through any effort to do such logical and simple things.

It would start to switch, then freeze at a point, and I couldn't switch from the console I was using and nothing else would work, and I'd have to reboot.

I was using Kubuntu. I checked my disc for errors, and all of that. I tried it over and over and read about it and I read that it works the way it did for me for other people, because of the way the configuration for it is set up, and that you can make changes to configuration files to get it to work (sort of, or whatever). I don't know, but having to put any thought into it is ridiculous to me.

I don't want to have to edit configuration files or read a tutorial to get it to work the way it should.

Last edited by pr_deltoid; 10-15-2010 at 06:29 PM.
 
Old 10-15-2010, 06:28 PM   #35
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Rep: Reputation: 41
Also, the fact that the *buntu distributions are the only distributions in the world that do things the way they do things should say something, considering everyone else knows what they're doing.
 
1 members found this post helpful.
Old 10-16-2010, 01:03 AM   #36
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Quote:
Originally Posted by pr_deltoid View Post
I tried init 1 and telinit 1 twenty times, and it wouldn't work and locked up on top of that every single time, and I read about it and saw that there might be a way to do it but you have to change your configuration files around manually.
What I mean is, by default not having a root account and not being able to switch to single user mode are problems, in my opinion. It's just strange to have to go through any effort to do such logical and simple things.

It would start to switch, then freeze at a point, and I couldn't switch from the console I was using and nothing else would work, and I'd have to reboot.

I was using Kubuntu. I checked my disc for errors, and all of that. I tried it over and over and read about it and I read that it works the way it did for me for other people, because of the way the configuration for it is set up, and that you can make changes to configuration files to get it to work (sort of, or whatever). I don't know, but having to put any thought into it is ridiculous to me.

I don't want to have to edit configuration files or read a tutorial to get it to work the way it should.
And what about "sudo passwd"?
 
Old 10-16-2010, 04:37 PM   #37
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Code:
kenny_strawn@kenny-AOA110:~/Desktop$ echo $BUMP
This thread will now be bumped
kenny_strawn@kenny-AOA110:~/Desktop$
 
Old 10-16-2010, 04:40 PM   #38
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Rep: Reputation: 41
I'm sure sudo passwd would work, I used it before when I was using Ubuntu. Maybe it's Kubuntu that's giving me the single user problems. I read on other forums and sites that what happens to me happens to other people, and that it's the way everything's configured. I assumed they meant for *buntu, not Kubuntu.
 
Old 10-16-2010, 04:42 PM   #39
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Rep: Reputation: 41
I do get a message that Firestarter has a problem or whatever, but that happens every time I start up Ubuntu or Debian. It works, but some part of it doesn't, I guess, because I always get a failed message of some kind regarding Firestarter.
 
Old 10-16-2010, 11:58 PM   #40
verndog
Member
 
Registered: Oct 2007
Posts: 278

Rep: Reputation: 67
Quote:
Originally Posted by pr_deltoid View Post
Also, the fact that the *buntu distributions are the only distributions in the world that do things the way they do things should say something, considering everyone else knows what they're doing.
Ubuntu "knows what there doing" also, thats why there NUMERO UNO!
 
1 members found this post helpful.
Old 10-17-2010, 01:21 AM   #41
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Quote:
Originally Posted by verndog View Post
Ubuntu "knows what they're doing" also, that's why they're NUMERO UNO!
Note the boldfaced enlarged corrections to your spelling.
 
Old 10-17-2010, 10:34 AM   #42
koen plessers
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Mint
Posts: 191

Rep: Reputation: 30
Midnight Commander:

sudo mc
 
Old 10-17-2010, 10:37 AM   #43
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Quote:
Originally Posted by koen plessers View Post
Midnight Commander:

sudo mc
Just how does that give you a root shell?
 
Old 10-17-2010, 10:43 AM   #44
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by Kenny_Strawn View Post
Just how does that give you a root shell?
MC has (potentially) lots of stuff built in, such as subshell support - try `sudo mc` or `su -c mc` and you get midnight commander. Then, hit CTRL-o for the root shell.

Pretty handy - MC is super-useful.
 
Old 10-17-2010, 05:27 PM   #45
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
What about this:

Press Ctrl+Alt+F1. At the shell you get, type the following:

Code:
sudo su
service gdm stop
startx
Now, see what you get!
 
  


Reply

Tags
preferred use, sudo



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
User executable script gaining root privileges w/o passwd neoAKiRAz Linux - General 6 09-06-2007 04:22 PM
Gaining root access to file manager Rick069 Linux - Software 2 04-27-2007 10:24 PM
gaining root access thebiggiantmouse Ubuntu 5 09-19-2006 03:53 AM
Gaining root access in Gnome jonasan Linux - Software 5 01-31-2006 11:11 AM
Gaining root access in KDE d-katz Linux - General 9 02-27-2004 05:46 AM

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

All times are GMT -5. The time now is 11:24 PM.

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
Open Source Consulting | Domain Registration