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 08-10-2006, 12:00 AM   #1
matticus
LQ Newbie
 
Registered: Jun 2006
Location: Perth, AUS
Distribution: SuSE 10.1
Posts: 25

Rep: Reputation: 15
need to do root commands as a regular user remotely


Hey all, now through ssh everyone says do not allow root access, especially passwordless access well that may be fine but i need a user configured to do remote scripts that generally require root access(copying and moving files) late at night when noone is here, therefore no user input can be given ie passwords. So whats the best way to go about that, is that what the sudo thing is for? and if i shouldnt do passwordless ssh access via authorized keys is there a way i can type the password during the day and then my ssh scripts will remember it for later at night?
 
Old 08-10-2006, 12:12 AM   #2
pddm
Member
 
Registered: Sep 2005
Distribution: Slackware 13.37
Posts: 112

Rep: Reputation: 15
What is usually meant is:"Do not allow root to directly log in."

Means before acquiring root status you have to log into a machine using an other authorized username and password.

What you can do is allow the wheel group to become root using the su command.

Or configure sudo.
Code:
lbox Login: matticus
Password: 
matticus@lbox$ su
Password
root@lbox#
 
Old 08-10-2006, 12:22 AM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Sounds like what you want is a cron job on the server unless I'm missing something. Just eliminate the ssh step all together and have everything managed on the server.
 
Old 08-10-2006, 12:32 AM   #4
matticus
LQ Newbie
 
Registered: Jun 2006
Location: Perth, AUS
Distribution: SuSE 10.1
Posts: 25

Original Poster
Rep: Reputation: 15
hmm, thanks for the speedy replies, the scripts are set up as cron jobs however they involve copying data from one server to another, hence the need for some form of network protocal (ssh) so if I create a user and add them to the group 'wheel' they'll have su access? is that right?
 
Old 08-10-2006, 12:50 AM   #5
pddm
Member
 
Registered: Sep 2005
Distribution: Slackware 13.37
Posts: 112

Rep: Reputation: 15
You will have to configure it, depending on your distro.

It is a good Idea to do this when you have access to the machine.
It is quite easy to lock yourself out from remote ssh login, during the configuration.
 
  


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
Moving from root to regular user KingOfDreams Linux - General 1 01-14-2005 05:46 AM
Given regular user root privileges clo99dx Linux - Newbie 6 06-05-2004 05:27 PM
Running root apps in X using regular user? nny0000 Slackware 10 01-15-2004 01:23 PM
Giving regular users access to certain root-only commands slickrcbd Linux - Newbie 4 12-24-2003 08:27 AM
can't login as regular user (root only) DontKnowNothing Mandriva 2 10-24-2003 02:36 PM


All times are GMT -5. The time now is 08:36 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration