LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permissions (https://www.linuxquestions.org/questions/linux-newbie-8/permissions-55721/)

hydro 04-18-2003 04:06 PM

Permissions
 
Hello folks :)

On my system I have proftpd installed. Now I wanted to be able to access my apache htdocs dir from my user account.

so i did

mount --bind /path/to/apache2/htdocs /home/bob/apache_htdocs

everything works, except I cannot delete or edit any files from that user account..

How can i add the user "bob" to be able to edit files in the apache dir.

currently all files belong to root/root

jailbait 04-18-2003 05:04 PM

changing permissions
 
To change all the permissions in /home/bob first figure out what group you want all of bob's files to belong to, say ingroup, then issue the following commands as root:

chown bob:ingroup /home/bob/* -R
chown bob:ingroup /home/bob

hydro 04-18-2003 05:50 PM

ya but how is that supposed to give me access to the apache/htdocs dir

bulliver 04-18-2003 06:07 PM

I think what you actually need to do is change the group of the files in your apache htdocs directory to something like 'web', then make sure that bob is a member of the group web. Then change group permissions of the files so you can edit them.

jailbait 04-18-2003 06:24 PM

right
 
Bulliver is right. I misread the question.

bulliver 04-18-2003 06:31 PM

he he, I do that too.

I thought you had another typo with your chown name:group file too, but I tried it with the colon and it worked. What's with that?

jailbait 04-18-2003 06:46 PM

dunno
 
I dunno. It is just the way my granpappy taught me.


All times are GMT -5. The time now is 08:28 AM.