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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-01-2009, 08:17 AM   #1
skripy
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
Useing the su command


Hi I am using Ubuntu 8.10 and I can not get the su command to work.

When I enter the su command, it asks me for the root password then I type in my password and it says not valid.

The sudo command works but it is annoy because I have to enter it every time I do something.
 
Old 04-01-2009, 08:18 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
try:
Code:
$ sudo su -
... to get arround this
 
Old 04-01-2009, 08:26 AM   #3
maxy7710
Member
 
Registered: Jan 2008
Location: Mumbai, india
Distribution: REDHAT, FEDORA,SUSE, UBUNTU, ORACLE ENTERPRISE LINUX & SOLARIS 10
Posts: 130

Rep: Reputation: 17
check whether root login is permitted or not.

if you want u can enter

"your-username ALL=(ALL) NOPASSWD:ALL" in the file /etc/sudoers

then it wont ask for password when u use sudo

i hope this helps
 
Old 04-01-2009, 08:43 AM   #4
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
I think you should at least be prompted for a password before becoming root personally.

If you don't want to use sudo, just set a password for root and use the su command.
Code:
$ sudo su -
# passwd
 
Old 04-06-2009, 08:00 AM   #5
skripy
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanx that is very helpful.

Work goes so much faster now
 
Old 04-06-2009, 08:10 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by maxy7710 View Post
if you want u can enter

"your-username ALL=(ALL) NOPASSWD:ALL" in the file /etc/sudoers

then it wont ask for password when u use sudo
Bad idea...

Enable root login using "sudo passwd root"
 
  


Reply



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
Useing Lilo to boot cd. dvdljns Slackware - Installation 6 08-28-2008 06:42 AM
Useing Amarok in Ubuntu windsurfer Linux - Software 2 04-15-2007 03:16 PM
Is my etch useing to much ram? tripmix Linux - Newbie 2 08-07-2006 06:55 AM
anyone useing Edubuntu for their kids? Lleb_KCir Linux - General 3 12-02-2005 05:03 PM
Emacs useing varala_kanth Linux - Software 1 03-30-2004 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:21 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