I looked at one file (a mp3), example opened In Ubuntu and it said (Owner: user-machine, Access: Read and Write) (Group: user, access none) Others:none.
From the terminal.
-rw------- 1 user user 3199826 Jan 16 2005 01 Track 1.mp3
-rw------- 1 1000 1000 3199826 Jan 16 2005 01 Track 1.mp3
if I move that file to own machine drive and do the same the result are the same,
I set the value by a command line "chown 1000 'and_the_file_path'
If I use -R at the top dir it give error:
drwSrwsrwx 92 user root 4096 Jul 27 15:44 Music
drwsr-sr-x 92 user root 4096 Jul 27 15:44 Music
What are those big s? on a place webpage say "s = Unix domain socket" ???
When I apply (-rwxr-xr-x.) by
Now I can open those files normally (at least at the moment)
this is a folder create for the system:
drwxr-xr-x 6 user user 4096 Jul 25 17:41 smstools3
My folder before modifications:
drwxrwxr-x 3 755 user 4096 Jul 27 15:28 Music
now from slack:
creating a folder give this permission:
drwxr-xr-x 2 root root 4096 Jul 27 18:26 test_music
and a file give:
-rw-r--r-- 1 root root 0 Jul 27 18:29 test
now I move the folder a cross from the same external drive and I get:
drwxr-xr-x 3 root root 4096 Jul 27 18:30 4
and the same file but now into the slack-machine drive
-rw------- 1 root root 3199826 Jan 16 2005 01 Track 1.mp3
-rw------- 1 0 0 3199826 Jan 16 2005 01 Track 1.mp3
And that is one of the problem if I pass a file using the slack machine even from a file attached to it to another one it take ownership.
I now I have some questions:
1- Is there a clear guide what file should have what permission:
note: I understand clear if read/write/execute but when should I give to the group or to others..
2.- Can I change the UID to the user? I know that be easy to change UID to the files, but I think would be easier to change the UID to the user and I dont need to change the backup files, right? Even root?