Forum Moderators: bakedjake

Message Too Old, No Replies

permissions question

         

scorpion

2:15 pm on Jun 26, 2003 (gmt 0)

10+ Year Member



When you do a directory listing on unix:

rwxr-xr-x 5 theuser theuser 4096 Mar 9 16:24 directory1
drwxr-xr-x 3 theuser theuser 4096 Feb 20 12:15 directory2

What do the two 'theuser' mean? One of them means the owner I think but which one?

The reason I ask is because I have a script that I want to run only from an account 'theuser' and only for that user to be the owner, but to be viewable over the web, however, if one runs that script over the web it receives 'apache' as the owner and that is a security risk I think...

Duckula

3:06 pm on Jun 26, 2003 (gmt 0)

10+ Year Member



Second one is the group, first one is the actual owner. Affects the rwx serie, because the first row is for the owner, the second for the group members and the third for everyone else.