chown
just won't work. I added a second hard drive to Ubuntu, formatted to ext4 with label hpmachine for file storage. Rebooted, and it mounts fine. I changed the permissions with chmod -R 777
, but I can't get chown to let me change the owner of the drive. When I type sudo chown -R first /hpmachine
, I keep getting this error: chown: invalid user: 'first'
.
I'm trying to use "first" which is the name I put in on the login screen when I installed Ubuntu. "first" is the ONLY user on this Ubuntu computer. I need this second hard drive to let other computers on the LAN to be able to write and delete files, basically I want everyone to be able to add to this drive without a password or anything. I've read a lot of questions on here, but nothing works.
When I ran ls -l
it says this-
testbox@hpubuntu:/media$ ls -l
testbox total 4 drwxrwxrwx 3 root root 4096 Sep 3 03:59 hpmachine.
The end word "hpmachine" is highlighted in green.
testbox@hpubuntu
you also can see that with:echo $USER
See also: askubuntu.com/questions/324705/…