file permissions
NoOp
glgxg at sbcglobal.net
Wed Jul 14 00:28:24 UTC 2010
On 07/13/2010 01:48 PM, Gryllida & someone else wrote:
...
>> $: man chmod
>> chmod -- change file modes or Access Control Lists
>>
>> Octal Text Binary Description
>> 0 --- 000 All types of access are denied
>> 1 --x 001 Execute access is allowed only
>> 2 -w- 010 Write access is allowed only
>> 3 -wx 011 Write and execute access are allowed
>> 4 r-- 100 Read access is allowed only
>> 5 r-x 101 Read and execute access are allowed
>> 6 rw- 110 Read and write access are allowed
>> 7 rwx 111 Everything is allowed
>>
>
> I see, thanks.
>
>> Normally you work with Octal or Text EXP:
>> $: chmod +rwx /file.txt
>
> This one allows everything for this file. For which user?
>
>> $: chmod 777 /file.txt
>
> What does this line do?
>
>>
>> -R flag is (as usual) recursive so if you are wanting to make all files
>> executable in a folder you would normally pass the recursive command.
>> Never at the end and always before the file name. EXP:
>>
>> $: chmod -R +x /path/to/folder
>>
>> If I remember right, you can also just skip the -R (unless you want to
>> go deeper) and just do a * which will tap all the files in that level of
>> the folder, EXP:
>>
>> $: chmod +x /path/to/folder/*
>
> Okay, this is to make these files executable, looks like not needed in
> this case.
Perhaps this will help:
https://help.ubuntu.com/community/FilePermissions
Be carefull with 777:
https://help.ubuntu.com/community/dmrcErrors
The following doesn't answer your basic question (I don't know the
answer), but may be of use:
https://help.ubuntu.com/community/Samba
https://help.ubuntu.com/community/ComprehensiveSambaGuide
[old but still good]
https://help.ubuntu.com/community/SettingUpSamba
More information about the ubuntu-users
mailing list