LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-27-2005, 08:50 PM   #1
Jean Of mArc
LQ Newbie
 
Registered: Nov 2005
Location: Canada
Posts: 25

Rep: Reputation: 15
root/user stop asking for password


Some programs (such as a script that tells my laptop to go wireless, or YaST) requires that I enter the root password, which I'm sure is common for everyone here...
Two questions:

A) Is it possible to set things up so that a user has the rights to run a particular program without a password? For example, when I run YaST, it asks for a password... can I set it up so that regular users can start YaST?

B) If you can't at least do that, is it possible to set it up is it possible for the computer to at least remember your password? I note that (in KDE) there is a checkbox under the "input password" dialog that says "Remember my password" (or something like that), but it only seems to for a limited time (like until I close my laptop lid, or reboot, or come out of suspend) before it is asking me for my password again when I try and run certain things.

I know it is good to have it ask for your password on certain things for security reasons, but there are certain things which I always want permission to just run without a password (or at least with a remembered one)

Ideas?

Thanks!
 
Old 11-27-2005, 09:13 PM   #2
seagley
LQ Newbie
 
Registered: Nov 2005
Location: China
Distribution: Redhat,SuSE.FreeBSD
Posts: 13

Rep: Reputation: 1
For your first question, you may execute the "visudo" then edit the /etc/sudoers file, and add a line like this:

yourname ALL=(ALL) NOPASSWD: ALL

so that if you wanna run yast in your own shell with root priveledge, what you have to do is executing "sudo /sbin/yast".

But please do remember---It is not a recommended setting if your box is running any improtant service ---it wont prompt you to enter the root password when you run "sudo command-name" --- it is very dangerous.It will compromise the security of your GNU/Unix system.
 
Old 11-27-2005, 10:20 PM   #3
Jean Of mArc
LQ Newbie
 
Registered: Nov 2005
Location: Canada
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks
So does this set ALL programs to run without prompting for password?
If so, is there a way so it only does this for specific things, not everything?
I don't want to compromise too much security (though I'm only using this system for personal use... no servers or anything)
 
Old 11-27-2005, 10:47 PM   #4
seagley
LQ Newbie
 
Registered: Nov 2005
Location: China
Distribution: Redhat,SuSE.FreeBSD
Posts: 13

Rep: Reputation: 1
Of course you can, you may execute "man sudoers" for more info, the sudoers file can control which command can be executed by the particular users from certian host.
 
  


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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
anyone can change my root or user password? coolblue Linux - Newbie 16 10-09-2005 03:51 AM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
getting user/root password HadesThunder Linux - Newbie 27 05-17-2004 05:07 PM
how do i stop root password reset? robhargreaves Linux - Security 3 01-31-2004 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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