hard drive permissions
Nils Kassube
kassube at gmx.net
Mon Nov 17 18:40:25 UTC 2008
Douglas Pollard wrote:
> Hi All, I had to replace the second hard drive on a single boot
> system. I have Ubuntu 8.04 on the first drive. I partitioned the
> second drive using the live Ubuntu cd. The drive belongs to root and
> I, as user, cannot add and remove files. I kinda know how to change
> permissions on a file, but have not figured out how to change a drive.
> Everything I'm reading refers to changing permissions on a file but I
> am working with a drive. Can I get some help here.
In this situation I usually suggest to make a directory on the disk for
the user and then change the ownership of the directory for that user.
You can do it like this:
sudo mkdir /media/disk/$USER
sudo chown -R $USER:$USER /media/disk/$USER
You may need to change the path where the disk is mounted but you can
leave the "$USER" part unchanged because the shell will replace it with
your login name.
Nils
More information about the ubuntu-users
mailing list