Transferring files Permission issues in remote box


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Transferring files Permission issues in remote box
# 1  
Old 06-13-2009
Question Transferring files Permission issues in remote box

Hi,

I have a directory 'data' which is a symbolic link to /var/opt/store/rawdata/appname on a remote box. I am not able to SFTP some files from my local box to this dir. in the remote box. Also I am not able to copy or move the files in the robot id home dir. in remote box to this data dir which is in robot id home dir. The following are the errors messages which I encountered for each approach.
On the remote box
cp or mv: cannot create regular file `data/file.csv': Permission denied
From my local box
scp: ./data/file.csv: Permission denied
sftp: Couldn't get handle: Permission denied

The following are the permissions of the dirs.
data has permissions
lrwxrwxrwx 1 robotid users 27 Jun 4 13:48 data -> /var/opt/store/rawdata/appname
appname has permissions
drwxr-xr-x 2 root root 4096 May 28 17:47 appname
rawdata has permissions
drwxr-xr-x 3 root root 4096 May 28 17:47 rawdata
store has permissions
drwxrwxr-x 31 root root 4096 May 28 17:47 store
opt has permissions
drwxr-xr-x 7 root root 4096 Jun 21 2005 opt
var has permissions
drwxr-xr-x 18 root root 4096 Jun 4 2004 var

I tried out everything at my end to put the files into data dir but with no luck.
Can anyone point to reason why this is happening.

Thanks in advance.



# 2  
Old 06-17-2009
When you say link to a remote host, you mean on a mounted NFS filesystem, yes?
# 3  
Old 06-17-2009
Hi
Both transfering files by SFTP or by commands require sufficent previlege to access directories and to modify them.
From the target path or it is parent directory, try to launch tho commands
PHP Code:
ls -ltr 
To see the owner and the group to witch it belongs. Then if you have the possibility to connect as owner, you will be able to copy in it else no solution.

Cheers
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Notify when the script run(hourly)on my jump-box only when there is a failure on my remote-box

Team, Presently I have a script, which i have set up cron on one of my Jump-boxes,and gives me the output on every hourly basis,fetching the data from the remote machine.Basically it gives me the list of all active users logged and its count once we execute the script.Here the count is... (6 Replies)
Discussion started by: whizkidash
6 Replies

2. UNIX for Dummies Questions & Answers

Transferring the file from one UNIX box to another UNIX box

Hi Folks, I am using winscp to graphiclly move the files from one unix box to another unix box , let say one unix box crediantials is (These are dummy crediantials) xxx -->username yyy -->password and another unix box name is RRR -->username TTT -->password NOW i need to... (4 Replies)
Discussion started by: punpun66
4 Replies

3. Shell Programming and Scripting

Is it possible to create 10GB file in Linux and transferring the file to other remote server

Hi folks, Is it possible to create 10GB file in linux and transferring the file to other remote server? Regards, J (3 Replies)
Discussion started by: scriptscript
3 Replies

4. Shell Programming and Scripting

Issues for script that login to a unix box

Hi, I have a script that should login to a different box then the box that i am in and run the commands. I have the script sample below that logins to a unix box and get the files .Looks like ls-lrt command is not running or its wrongly used. #!/bin/bash # Ask the user for build month... (5 Replies)
Discussion started by: learninguser235
5 Replies

5. UNIX for Dummies Questions & Answers

DNS on Unix box issues

Hi Guys, Just wanted to seek your assistance on an issue encountered with one of our client DNS server query. we have 2 sets of DNS servers.. internal and external. For Internal to reach the external DNS server (DMZ) it has to go through 2 FWs. Current settings: - FW rules for Internal... (3 Replies)
Discussion started by: Hotshot8259
3 Replies

6. Shell Programming and Scripting

Issues with expr command on Solaris Box

Hello Friends, I have written a code on a Linux box, however, am getting issues while running it on a Solaris server. The issue with Sed command is sortd out, however, am still lokking for solutions with expr command. Here is the issue, Linux : bash-2.03$ expr match singh@test.com... (10 Replies)
Discussion started by: suffisandy
10 Replies

7. Linux

How to find remote Linux box login account without login in to that box?

Hi, How to find remote Linux box login account without login in to that box? I don't have login account at my remote Linux box. But I need who are all having login account. How do I findout? Thanks, --Muthu. (3 Replies)
Discussion started by: Muthuselvan
3 Replies

8. Shell Programming and Scripting

Permission issues in Files

There are two text files are there in UNIX directory. One file created by informatica that contains the detail records and other file is created by Shell script that contains header record(1 row)but these two files are created in different user. I want to merge these two files with another file... (4 Replies)
Discussion started by: praka
4 Replies

9. Shell Programming and Scripting

change files permission on Remote machine

I would like to change permissions recursively on a remote folder. Seems like sftp has a limitation, I am only able to change permission on a individual file.. sftp > chmod 777 /usr/local/apache/docs/test.txt It would be great if someone has more knowledge on how this is doable recursively? (1 Reply)
Discussion started by: almeisan1
1 Replies

10. UNIX for Dummies Questions & Answers

transferring files to and from remote computer

Hi all, i first have to ssh into my university account and then through there another ssh into my office computer, from my home computer. I have been trying to transfer files to and from with no such luck. How do i send a file from home to my office computer. Do I have to send it to my... (6 Replies)
Discussion started by: yogi1
6 Replies
Login or Register to Ask a Question