Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to either extend the size of my guest partition or figure out how to copy stuff from the guest partition to my normal /home directory.

(Because of some other problems I can only run Xorg as guest, but I can log into virtual console as myself or root.)

Here's the motivation: I want to torrent a large file. It's larger than my guest filesystem. But I have plenty of space on my real drive, I just can't log into it graphically.

So I tried to set up a "pipe" to get the file out of the tmpfs. I did:

su -u myself 
#catch
mkdir ~/receiver_dir

sudo su
cd /tmp/guest-lkj567UIO/ 
#throw
ln -s mario_pipe /home/myself/receiver_dir
chown -R guest-lkj567UIO /home/myself/receiver_dir
chown -R guest-lkj567UIO /tmp/guest-lkj567UIO/mario_pipe
chmod -R a+rw /home/myself/receiver_dir
chmod -R a+rw /tmp/guest-lkj567UIO/mario_pipe

su -u guest-lkj567UIO
cd /tmp/guest-lkj567UIO
cd mario_pipe
touch something #success!

However, when I try to torrent to /tmp/guest-lkj567UIO/mario_pipe, Transmission says I don't have write permissions. But it looks like I just wrote there? And that everybody (a+rw) can write there in fact?

Maybe this indicates I don't actually understand chown and chmod but nothing from their man pages pops out.

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

When you log in as guest, there is an apparmor profile that is loaded to restrict access to lock down the guest account so that it can't write outside of its home directory, even if the file's permissions give access.

You might be able to get around this by using a bind mount instead of a symlink:

mkdir /tmp/guest-lkj567UIO/mario_pipe
mount --bind /home/myself/receiver_dir /tmp/guest-lkj567UIO/mario_pipe
share|improve this answer
    
Yessssssss! Awesome! 1 GB space just upgraded to 250 GB. =) –  isomorphismes Jun 25 '12 at 2:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.