The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sudo, or not sudo: that is the question iBot UNIX and Linux RSS News 1 02-07-2008 01:40 PM
Sudo ???? ShellBoy UNIX for Advanced & Expert Users 4 07-20-2007 01:14 PM
using sudo in HP-UX yoavbe Shell Programming and Scripting 1 07-17-2006 07:54 AM
Help with Sudo geomonap UNIX for Advanced & Expert Users 1 03-29-2006 03:50 PM
Sudo reddyb UNIX for Dummies Questions & Answers 1 08-23-2001 04:15 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-12-2005
rein rein is offline
Registered User
  
 

Join Date: Dec 2004
Location: Zürich
Posts: 146
scp and sudo?

I'm using AIX and I have the following issue:

I need to copy configuration files from one server to another but I don't have root rights. All I can do is use sudo to change to the application owner. Permissions are such that I can't copy these files from my home, not even via /tmp to the application mount point. I get the message that the file system is read only.

I was thinking, can I use scp and invoke sudo in some way so I can copy these files as the application owner rather then with my own account? Or any other ideas?
  #2 (permalink)  
Old 04-12-2005
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
  
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 637
if the other user is also setup with scp, you can just sudo ...

(cd /dir; tar cvfp - config_file*) | ssh remotehost "cd /remotedir; tar xvfp -"

otherwise, you're in a tough situation unless you can get your admins to do the changes for you ...
  #3 (permalink)  
Old 04-12-2005
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
It will also depend on how the filesystem to which you are trying to copy the files is mounted. It could be mounted locally as read-only, or NFS mouted as readonly in which case there is little chance you will be able to achieve what you are trying to do without assistance from your sysadmin.
  #4 (permalink)  
Old 04-13-2005
rein rein is offline
Registered User
  
 

Join Date: Dec 2004
Location: Zürich
Posts: 146
which indeed is the case
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0