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 am using ubuntu 12.04 in VirtualBox, and I created two accounts with usernames lyg and ygl.

I found a directory VBOXADDITIONS_4.1.18_78361/ in /media, questions got into my mind when I type "ls -l /media/" in my terminal. Below are two outputs:

  1. When I boot and login as lyg,

-xr-xr-x 4 lyg lyg 2048 Jun 5 22:33 VBOXADDITIONS_4.1.18_78361

  1. Reboot and login as ygl,

-xr-xr-x 4 ygl ygl 2048 Jun 5 22:33 VBOXADDITIONS_4.1.18_78361

So, why do the user and group change?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

/media/VBOXADDITIONS_4.1.18_78361 is automatically mounted by your system upon login from a user using udev rules.

What you are seeing is just the system applying those rules. These rules are set by default so that any user can have full permissions to the mounted volumes.

share|improve this answer
    
thank you very much, I'm new to Linux and this is my first post at askubuntu. your answer is very nice and I'm going to Google "udev" to learn more details. –  LYg Jul 30 '12 at 7:38

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.