LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-09-2006, 11:00 PM   #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-09-2006, 11:12 PM   #2
pddm
Member
 
Registered: Sep 2005
Distribution: Mint 19.2
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-09-2006, 11:22 PM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
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-09-2006, 11:32 PM   #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-09-2006, 11:50 PM   #5
pddm
Member
 
Registered: Sep 2005
Distribution: Mint 19.2
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:52 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
Open Source Consulting | Domain Registration