OK, I'm sick and tired (yes, I know we all are) of putting in my password all the time to access root areas like YAST or package manager, etc... Is there a way to do a script where I can log into everything that requires a root password at one time and have it timeout after 24 hours??? I'm an idiot, so if you can show me how without saying "write a simple bla-bla script," I would appreciate it. Tom
Install sudo and use this. You would just type something like this... sudo yast And it would excute yast as root and when quite it would go away. You have to edit your sudoers file in /etc and do this... -- # User privilege specification root ALL=(ALL) ALL <your username goes here> ALL=(ALL) NOPASSWD:ALL -- If you do it this way then sudo will not ask you for any password at all. :) Rememeber the file is /etc/sudoers * Tom Nielsen (tom@neuro-logic.com) [020301 23:58]: ->OK, I'm sick and tired (yes, I know we all are) of putting in my password all ->the time to access root areas like YAST or package manager, etc... -> ->Is there a way to do a script where I can log into everything that requires a ->root password at one time and have it timeout after 24 hours??? -> ->I'm an idiot, so if you can show me how without saying "write a simple ->bla-bla script," I would appreciate it. -> ->Tom -> ->-- ->To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com ->For additional commands send e-mail to suse-linux-e-help@suse.com ->Also check the FAQ at http://www.suse.com/support/faq and the ->archives at http://lists.suse.com -> -----=====-----=====-----=====-----=====----- Ben Rosenberg mailto:ben@whack.org -----=====-----=====-----=====-----=====----- "I've never been quarantined. But the more I look around the more I think it might not be a bad thing." -JC
Ben is right about sudo. You may need to install the sudo package if you don't have it yet. (rpm -q sudo to check). You can add this line to the /etc/sudoers config file to get the 24-hour timeout: Defaults timestamp_timeout 1440 ``man sudoers'' for more details. --Steve Augart Tom Nielsen wrote:
OK, I'm sick and tired (yes, I know we all are) of putting in my password all the time to access root areas like YAST or package manager, etc...
Is there a way to do a script where I can log into everything that requires a root password at one time and have it timeout after 24 hours???
I'm an idiot, so if you can show me how without saying "write a simple bla-bla script," I would appreciate it.
Tom
Tom Nielsen wrote:
OK, I'm sick and tired (yes, I know we all are) of putting in my password all the time to access root areas like YAST or package manager, etc...
Is there a way to do a script where I can log into everything that requires a root password at one time and have it timeout after 24 hours???
I'm an idiot, so if you can show me how without saying "write a simple bla-bla script," I would appreciate it.
Tom
Personally, I say you should get used to it. There will always be a a tradeoff between security and convenience. When I was first starting out in the UNIX world, I loved to do things like that to make my life more convenient. However, the first time you have to spend all weekend restoring a system you trashed because you forget just where and when all those little tricks are hidden, you will begin to appreciate that most companies choose security over convenience. I, for one, am *not* one of those who is sick and tired of it. It is simply the path of least danger. Do you really have to change that much on your system that you need to be root all the time? If so, why not just login as root all of the time? That would definately save you a lot of hassle. Do you really have so many problems that you have to be root all the time to trouble shoot them? In my experience, the only time you need to be root is to change something or to troubleshoot. On my systems at home and work, I rarely log in as root and the inconvenience is worth it when you consider the risks. My two cents. Regards, jimmo -- --------------------------------------- "Science has promised man power...But, as so often happens when people are seduced by promises of power, the price is servitude and impotence. Power is nothing if it is not the power to choose." Joseph Weizenbaum of MIT said in reference to Computers. --------------------------------------- The Great Linux-NT Debate: <http://www.jimmo.com/Linux-NT_Debate/index.html> --------------------------------------- NOTE: All messages sent to me in response to my posts to newsgroups or forums are subject to reposting.
participants (4)
-
Ben Rosenberg
-
James Mohr
-
Steven Augart
-
Tom Nielsen