LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-25-2006, 01:08 PM   #1
ITSFREE
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Rep: Reputation: 0
Using Root


Is there anyway to change the root permissions so I dont have to type in my password every time to make changes or install programs. This is annoying since I'm the only one that uses this computer.
 
Old 02-25-2006, 01:23 PM   #2
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
What distribution are you using?

The only root permission is there for your safety. Also in case your system gets hacked or anything. It is really uncool to leave your system running with all root permissions wide open, and it is in no way recommended!
I bet its also one of the reasons why linux lasts longer on your harddrive

Anyway: most of the time you wont do things that needs root access on your pc, so the 'su' typing cant be that much of a pain or? (just curious)

Sincerely, Jørgen
 
Old 02-25-2006, 01:46 PM   #3
ITSFREE
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Original Poster
Rep: Reputation: 0
I'm using Suse 10 and trying to get things set up. Many of the programs need extra componets added to them before they will work properly and all rpm's I'm installing can make it a pain at times. Once I get thins tuned in I won't be needing root acess as much. I can't get use to all of the different options and settings Linux has to offer and windows won't let you do much at all to customize your Desktop and Programs. It's frustrating at times but after you tinker around and get it working... WOW!!! It' pretty cool.
 
Old 02-25-2006, 02:41 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
If using KDE there is a link in the Start Menu > System Tools > File Manager (super user).
This opens a konquorer window with root access then if you need a terminal just right click and select Actions > Open terminal here.

Another way is to add yourself to the wheel group. Then edit /etc/sudoers file. You have to use the command ' visudo ' to edit this file. Also requires root access. Once open add the line like this or uncomment if it exist. It uses the vi editor which is one of the best around but may be difficult for beginners. To change default editor run command ' export EDITOR = nedit ' or your favorite editor.
Code:
# Uncomment to allow people in group wheel to run all commands
%wheel        ALL=(ALL)       ALL
Or to use it commands without password. do this.
Code:
# Same thing without a password ( not the secures way but the only user)
%wheel        ALL=(ALL)       NOPASSWD: ALL
Now to run a command as root in use a command like ' sudo make install ' or ' sudo rpm -ivh *.rpm '. The first one still requires a password the second one does not.

Login as user
Open a terminal
su -
export EDITOR = nedit
visudo
add line
Code:
 %wheel        ALL=(ALL)       NOPASSWD: ALL
save and exit
add yourself to the wheel group ' groupadd -g wheel username ' Replace username with your username.
Now just add sudo before the commands that require root usage.

Brian1

Last edited by Brian1; 02-25-2006 at 02:42 PM.
 
  


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
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 09:32 AM
Boot Error: Root file system /dev/root adtomar Linux - Networking 0 12-27-2004 11:50 AM
Scanner to work as USER and not forced as ROOT Root (Suse 9.1) 1kyle Linux - Hardware 0 07-10-2004 09:51 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 05:14 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM


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