file permissions

Jordon Bedwell jordon at envygeeks.com
Tue Jul 13 20:56:05 UTC 2010


On 7/13/2010 3:48 PM, Gryllida wrote:
>> On Tue, 2010-07-13 at 17:41 +0930, Gryllida wrote:
>>>> Hello. I store some files on a windows XP machine. The windows user
>>>> shared them with permission everyone full control.
>>>>
>>>>  I'm on Ubuntu 10.04, and while being able to edit them all-right,
>>>> when I make new files, they have only me on the permissions list.
>>>> resulting in the windows user unable to open them...
>>>>
>>>>  The files themselves are stored on the other machine, not on this one
>>>> , I get to it by smb://ip/.
>>>>
>>>> What can I configure to fix it?
>>>>
>>>> Possibly to make the files I create inherit the permissions of the
>>>> directory I'm making them in?
>>>>
>>>>
>>>>
>>>> --
>>> ubuntu-users mailing list
>>>> ubuntu-users at lists.ubuntu.com
>>>> Modify settings or unsubscribe at:
>>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>>>
> 
>>> On 7/13/10, Anggi Lesmana <alesmana2010 at gmail.com> wrote:
>>> Please try this method, type on your terminal :
>>>
>>> $ sudo chmod 777 -R /your/sambasharefolder
> 
> 
>> On 7/14/10, Gryllida <gryllida at gmail.com> wrote:
>> What does it do?
> 
> On 7/14/10, Jordon Bedwell <jordon at envygeeks.com> 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.
> 
>>
>> --
>> Cheers,
>>
>> Jordon Bedwell
>> http://envygeeks.com
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
> 


777 is +rwx (read write execute).  To further elaborate why we have 3
numbers is because we have, owner, group and others. So the first 7 is
owner, second is group and third is others. So 744 would be rwx for you,
read for your group and read for everyone else.

-- 
Cheers,

Jordon Bedwell
http://envygeeks.com




More information about the ubuntu-users mailing list