hard drive permissions
dougpol1 at verizon.net
Fri Nov 21 22:39:35 UTC 2008
Nils Kassube wrote:
> 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.
Ok, been away from this a few days, working on video but I am fast
running out of disk space. Put in as per your direction, Nils, It
aparently went in alright as the new prompt came up.
sudo mkdir /media/disk/$USER sudo chown -R $USER:$USER /media/disk/$USER Changed user to doug my user name. The drive permissions / in places 250GB media drive / properties and finally pemissions. Both owner and groups belong to root.
I guess what I am missing is the path where the disk is mounted I don't understand can you help me with this.
More information about the ubuntu-users