LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 09-13-2005, 08:10 AM   #1
skie_knite007
Member
 
Registered: Dec 2004
Location: India
Distribution: Fedora Core 4
Posts: 145

Rep: Reputation: 15
giving root privilage to ordinary user...


Is there any way of giving root privilage to ordinary user??????
 
Old 09-13-2005, 08:21 AM   #2
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Hi,

I'd just like to ask you a few questions first...

1) Why would you like to do that? *security risk*

2) Why don't you just use the root account instead (as long as you aren't connected to the 'Net. As suggested below, use 'sudo' instead - I think it's great, and I haven't even touched the root accound on my laptop )?



J_K9

Last edited by J_K9; 09-13-2005 at 09:03 AM.
 
Old 09-13-2005, 08:25 AM   #3
pycoucou
Member
 
Registered: Apr 2004
Location: Edinburgh
Posts: 78

Rep: Reputation: 15
For a less philosophical point of view ;-), you can use SUDO. A very good program you can tune (almost easily) to grant various kind of access...
 
Old 09-13-2005, 08:26 AM   #4
skie_knite007
Member
 
Registered: Dec 2004
Location: India
Distribution: Fedora Core 4
Posts: 145

Original Poster
Rep: Reputation: 15
I was juz wondering whether a recovery tool is possible if the password ia lost ( other than doing it by rebooting).
 
Old 09-13-2005, 08:44 AM   #5
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Oh, in other words privilege escalation. That's generally considered hacking/cracking, and may be frowned upon in these forums...although there are ways to do it if you really have lost your root password.
 
Old 09-13-2005, 09:03 AM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Easiest way if you have physical access is when at the boot loader, get it to boot into single user mode and then change the root password from the shell prompt.
 
  


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
Giving root privileges to another user BlackJackal Mandriva 5 10-19-2005 01:03 PM
How a ordinary user can run commands having only root privilige in C? shivaligupta Programming 1 01-31-2005 04:24 AM
Creating user in linux with the same or less privilage as root Tereno Linux - General 3 12-02-2004 06:36 AM
Creating user in linux with the same or less privilage as root sillyman Linux - General 2 12-01-2004 03:41 PM
Giving a User Root Privileges lawrencegoodman Linux - Newbie 4 12-23-2003 04:41 PM


All times are GMT -5. The time now is 03:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration