Connecting Tech Pros Worldwide Forums | Help | Site Map

Give permission to folder/file without giveing ownership

dlite922's Avatar
Expert
 
Join Date: Dec 2007
Location: Moon, Dark Side
Posts: 1,095
#1: Oct 23 '08
This is a totally n00b question but I'm saying good bye to Windows slowly and I've come across where I need to own a directory but I want to give write permission to Smarty (Apache user). Right now I change ownership back and forth. I don't want to give world permissions.

Do i really HAVE to create a group with me and apache in it and give write permission to that group? Is there another way like windows to Select multiple users and give each their own different permissions?


Thanks guys,



Dan

Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#2: Oct 23 '08

re: Give permission to folder/file without giveing ownership


Have a look at chown and chmod commands. chown changes the file's owner while chmod change the permissions without changing the owner.
ashitpro's Avatar
Expert
 
Join Date: Aug 2007
Posts: 389
#3: Oct 23 '08

re: Give permission to folder/file without giveing ownership


There is no way here like windows,
You can create a group(as you thought) and give the write permission to it.

Regards,
Ash
Reply