Copy files without root permissions

In my college we have only little permission to use files.i need to copy some C programs from other users to my account.

I cannot copy it to /tmp and then copy it back to my account from there, because the cp and mv commands are blocked here.

When I copy something to tmp we cannot even have the read permission on it.

Can you please give a good solution for this?

5

5 Answers

We see that the admin pretty much tied all your hands not to be able to perform tasks like this. I guess the best solution would be to write a message directly to him/her and ask for a solution on your problem.

2

Do you have access to mounting USB drives? Perhaps you could also create a /home/you/tmp and using that instead of /tmp . Of course, this also assumes that you do not have sudo privileges. If you are able to use sudo, then you could also do as CYREX says.

2

if you can use scp you can do:

scp other_user_login@localhost:/home/other_user_login/file_you_need .

from your account and in the diretory you want to put the file. (you can also change the . to the file location you want on your account)

(other_user_login password will be asked of course)

3

You can try to use python web server in your friend's directory:

python -m SimpleHTTPServer 8000

and connect from your user with firefox using . If it works, you'll see the directory where the webserver was started and you will be able to "download" the files to your user.

Maybe you'll have to do this on 2 different machines (and change localhost:8000 to proper ip or name of course) because you can't close the terminal running the web server.

As laurent-rpnet mentioned use SCP. If this service is disabled then you can also try ftp.

try : ftp 0 This will connect to the same machine. and provide the username and password of your friend.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like