Some peromission problem

saeed

Verified User
Joined
Oct 7, 2003
Messages
28
Location
Riyadh
I have create a new account in my new machine using DirectAdmin.
When I try to access this url below:-
http://www.alwasan.com/webmail

it gives me such error msg:-
===================
Warning: mkdir(./tmp/_cached_templates): Permission denied in /var/www/html/webmail/smarty/Smarty.class.php on line 1412

Warning: Smarty error: problem creating directory "./tmp//_cached_templates/neotech.net" in /var/www/html/webmail/smarty/Smarty.class.php on line 1543

Warning: Smarty error: problem writing './tmp//_cached_templates/neotech.net/login.php.' in /var/www/html/webmail/smarty/Smarty.class.php on line 1543

Warning: fetch(./tmp//_cached_templates/neotech.net/login.php): failed to open stream: No such file or directory in /var/www/html/webmail/smarty/Smarty.class.php on line 633

Warning: fetch(): Failed opening './tmp//_cached_templates/neotech.net/login.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/webmail/smarty/Smarty.class.php on line 633
===========

Tell me where do i have to set the permission and for which folder... or what is wrong ?
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,025
Hello,

Try reinstalling webmail, as it will set the directory persmissions for you:
Code:
cd /usr/local/directadmin/scripts
./webmail.sh
There is a tmp directory in the webmail folder that needs to be writeable by apache, but I'd just use the script to do it anyway.

Also make sure that safemode isn't getting in the way by checking the user httpd.conf (/usr/local/directadmin/data/users/username/httpd.conf). It should either be commented out, or set to off/0

John
 

saeed

Verified User
Joined
Oct 7, 2003
Messages
28
Location
Riyadh
DirectAdmin Support said:
Hello,

Try reinstalling webmail, as it will set the directory persmissions for you:
Code:
cd /usr/local/directadmin/scripts
./webmail.sh
There is a tmp directory in the webmail folder that needs to be writeable by apache, but I'd just use the script to do it anyway.

Also make sure that safemode isn't getting in the way by checking the user httpd.conf (/usr/local/directadmin/data/users/username/httpd.conf). It should either be commented out, or set to off/0

John
thnx its working now...

I want you to ask one more thing...

i have created a user and set a password for him...
When i login to that email user account.. i was surprised to see that there is no option for change password... i.e a user cannot change his email password only admin can change.

why is it like that ?
 

loopforever

Verified User
Joined
May 30, 2003
Messages
298
Location
/home/admin
Webmail applications simply interface with the POP3 and SMTP services to send and recieve mail. A mear web-based script does not have permission to change something so critical as a user's password since whatever system user it runs as cannot make changes to the user/pass file.
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,025
Hello,

We've created a page where virtual email accounts can change their passwords:

domain.com:2222/CMD_CHANGE_EMAIL_PASSWORD

This *can* be integrated into a skin, and I believe a SquirrelMail skin has been, or is in the process of being developped by one of our clients.

http://www.directadmin.com/features.php?id=229

John
 
Top