sudo chown username:username /PATH/TO/USBDRIVE
sudo chown zamb:zamb /media/40GB
sudo chmod go+w /media/disk
sudo chown myaccountname:mygroupname /media/disk
sudo mkdir /media/disk/myfolder
sudo chown myaccountname:mygroupname /media/disk/myfolder
Dirge wrote:Is there any advantage to creating a subfolder that is writable by your account, while leaving the root folder of the drive writable only by root? I heard someone mention this was the nix way of doing things as it provided more security. Is this true?
Would I encounter any problems with this method if I later upgraded to Ubuntu 8.10 and changed to a different user account. I assume if it was in the same group I would be alright. What about using the drive with a different distro? I am guessing it wont work without changing ownership again.
And also a quick find/chown command can easily switch the files that belonged to the old userid to the new userid.just brew it! wrote:Also note that Linux user IDs (as stored internally in the file system) are just numbers; IIRC the first user created on an Ubuntu system is user ID 1000. If you do another fresh install, the first user created will get the same numerical user ID (and so will effectively be the same user as far as attached storage devices are concerned), even if the name is different.
Users browsing this forum: No registered users and 4 guests