permissions for webmail / squirrel mail

sde

Verified User
Joined
Sep 11, 2004
Messages
213
Location
Temecula, CA
i moved some files around which included the squirrel and webmail directories and it seems like my permissions got messed up.

could someone look and tell me the ownership of squirrelmail and webmail ? ( user:group )

also, in squirrelmail, could you tell me what the permissions are set for data/ and the files inside data?

i was able to fix it by making the data files readable by all, however i'm not sure if i was supposed to do this or not.

any help would be greatly appreciated

thank you!!
 
Squirrelmail:
Code:
[jeff@da1 jeff]$ ls -ald /var/www/html/squirrelmail
lrwxrwxrwx    1 root     root           18 Nov 10  2003 /var/www/html/squirrelmail -> squirrelmail-1.4.2
[jeff@da1 jeff]$ ls -ald /var/www/html/squirrelmail-1.4.2/
drwxr-xr-x   16 root     root         4096 Oct  1  2003 /var/www/html/squirrelmail-1.4.2/
[jeff@da1 jeff]$ ls -ald /var/www/html/squirrelmail/data
drwx------    2 apache   apache       4096 Nov 10 13:33 /var/www/html/squirrelmail/data
[jeff@da1 jeff]$
I can't just print out results from a working system for the contents of data; to do so would give away client information they might consider private.

So instead I'll just tell you that all the files are apache:apache, and all are chmod 600 except *.abook, which are chmod 644

For webmail:
Code:
[jeff@da1 jeff]$ ls -ald /var/www/html/webmail
drwxr-xr-x    9 root     root         4096 Jun  3  2003 /var/www/html/webmail
[jeff@da1 jeff]$
Jeff
 
Code:
<?
for($i=0;$i<1000;$i++){
  echo "THANK YOU JEFF!!\n";
}
?>

i really appreciate that. i think i got it back to normal.
 
You're welcome :D .

For future information:

If you want to copy directories rather than move them, the following will copy a directory, including all recursive files and directories, keeping the same permissions and ownerships where possible:

cp -Rp originaldirectory /path/to/new/directory

If you want to move the directory the straight mv command will move the entire directory structure, with everything in it, to wherever you want it, without changing ownership or permissions.

Jeff
 
Back
Top