Changing permissions for a group of files via nautilus

Alex Janssen alex at ourwoods.org
Fri Oct 7 03:26:16 UTC 2005


Alex Janssen said the following on 10/6/2005 11:15 PM:

> Stephen R Laniel said the following on 10/6/2005 11:01 PM:
>
>> On Thu, Oct 06, 2005 at 10:53:03PM -0400, Richard Querin wrote:
>>  
>>
>>> subfolders and files it contains. I understand how to give ownership 
>>> and write
>>> permissions on the individual files to my username while I'm root, 
>>> however I
>>> can only modify these on a file by file basis. If I highlight a 
>>> group of files
>>> in Nautilus, the permission and ownership properties cannot be changed.
>>>   
>>
>>
>> The properties probably can't be changed in Nautilus because
>>
>> 1) they're owned by root and
>> 2) you're not logged in as root.
>>
>> To do anything to a file that root owns, you need to have
>> root permissions. In Ubuntu, the way you do this is with the
>> sudo command. Have you learned about sudo? In brief, this is
>> what you'd do at the command line:
>>
>> sudo chmod -R [permissions] [directory name]
>>
>> where '[permissions]' is something like 'u+r' (give the
>> owner of the directory Read access to it), 'ug+w' (give
>> owner and group Write access), etc. Let me know if you need
>> more detail on this aspect of it; all of this stuff is
>> (albeit cryptically) in the man page for chmod.
>>
>>  
>>
>>> I'm trying to do this via nautilus and the properties dialog. If 
>>> it's quicker
>>> to do from the terminal, please let me know either way.
>>>   
>>
>>
>> If you weren't changing files owned by root, it would be
>> super-straightforward and probably just as fast in Nautilus
>> as at the command line: in Nautilus, right-click on the
>> folder, go down to Properties, and go to the Permissions
>> tab. You should see everything you need in there.
>>  
>>
> Richard,
> You might also just change ownership of the files and folders to 
> yourself via:
>
> sudo chown -R dirname yourusername:yourgroupname
>
> HTH,
> Alex
>
Oops! 

That's sudo chown -R yourusername:yourgroupname dirname

Forgiveness requested.

Alex

-- 
Ourwoods.org
Charlottesville, Virginia





More information about the ubuntu-users mailing list