LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-05-2017, 03:27 AM   #1
gourishmesta
LQ Newbie
 
Registered: Jan 2017
Posts: 1

Rep: Reputation: Disabled
squirrelmail /var/www/html/folder_name, permission denied


Hi there,

I have configured the squirrelmail in ubuntu server, after finishing the installation iam able to login with Usr name"smail" after login there has been some error "ERROR: Could not complete request.
Query: SELECT "INBOX"
Reason Given: [SERVERBUG] Internal error occurred. Refer to server log for more information"
--when I checked on /var/log/mail.err I m able to see permission issue with /var/www/html/F_N(smail). Please find some of the log files
Jan 5 13:40:57 fgis dovecot: imap(smail): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2017-01-05 13$
Jan 5 13:40:58 fgis dovecot: imap(smail): Error: open(/var/mail/smail) failed: Permission denied (euid=1001(smail) egid=1001(smail) missing +w perm: /var/mail, we're $
Jan 5 13:40:58 fgis dovecot: imap(smail): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2017-01-05 13$
Jan 5 13:40:59 fgis dovecot: imap(smail): Error: open(/var/mail/smail) failed: Permission denied (euid=1001(smail) egid=1001(smail) missing +w perm: /var/mail, we're $
Jan 5 13:40:59 fgis dovecot: imap(smail): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2017-01-05 13$
Jan 5 13:41:00 fgis dovecot: imap(smail): Error: open(/var/mail/smail) failed: Permission denied (euid=1001(smail) egid=1001(smail) missing +w perm: /var/mail, we're $
Jan 5 13:41:00 fgis dovecot: imap(smail): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2017-01-05 13$
Jan 5 13:41:01 fgis dovecot: imap(smail): Error: open(/var/mail/smail) failed: Permission denied (euid=1001(smail) egid=1001(smail) missing +w perm: /var/mail, we're $
Jan 5 13:41:01 fgis dovecot: imap(smail): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2017-01-05 13$
Jan 5 13:41:02 fgis dovecot: imap(smail): Error: open(/var/mail/smail) failed: Permission denied (euid=1001(smail) egid=1001(smail) missing +w perm: /var/mail, we're $
Jan 5 13:41:02 fgis dovecot: imap(smail): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2017-01-05 13$
Jan 5 13:41:03 fgis dovecot: imap(smail): Error: open(/var/mail/smail) failed: Permission denied (euid=1001(smail) egid=1001(smail) missing +w perm: /var/mail, we're $
Jan 5 13:41:03 fgis dovecot: imap(smail): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2017-01-05 13$
Jan 5 13:41:03 fgis dovecot: imap(smail): Error: open(/var/mail/smail) failed: Permission denied (euid=1001(smail) egid=1001(smail) missing +w perm: /var/mail, we're $
Jan 5 13:41:03 fgis dovecot: imap(smail): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2017-01-05 13$
Jan 5 13:43:54 fgis dovecot: imap(smail): Error: open(/var/mail/smail) failed: Permission denied (euid=1001(smail) egid=1001(smail) missing +w perm: /var/mail, we're $
Jan 5 13:43:54 fgis dovecot: imap(smail): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2017-01-05 13$
Jan 5 13:43:54 fgis dovecot: imap(smail): Error: open(/var/mail/smail) failed: Permission denied (euid=1001(smail) egid=1001(smail) missing +w perm: /var/mail, we're $
Jan 5 13:43:54 fgis dovecot: imap(smail): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2017-01-05 13$
Jan 5 13:44:14 fgis dovecot: imap(smail): Error: open(/var/mail/smail) failed: Permission denied (euid=1001(smail) egid=1001(smail) missing +w perm: /var/mail, we're $
Jan 5 13:44:14 fgis dovecot: imap(smail): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2017-01-05 13$


please help me on this, how can i set the permission for "smail" username for"smail"folder which is located in /var/www/html path
 
Old 01-15-2017, 04:25 PM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Does the user smail physically exist as a linux user? I believe on linux boxes, there has to be an actual system user with the same username as in the mail application. I may be incoreect, however, that has been my understanding of it when i was looking at self hosting which i gave up because the provider i use does not use standard ports for forwarding the mail.

Good luck with that, but i vaguely remember an actual system user is required.

Also your question heading specifies the webroot folder for mail but your logs show /var/mail.

I do not think putting mail in webroot is wise, so if you can, leave it under /var/mail.

If the user exists, go to /var/mail and check that user smail has read/write permission to that file. If not just add those permissions. If the file does not exist, just create an empty file with permissions.

Last edited by ericson007; 01-15-2017 at 04:30 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
permission to change add,save files into /var/www/html optmus Linux - Newbie 1 08-24-2015 07:45 AM
How do I give a user permission to save files to /var/www/html? rotnay6000 Linux - Newbie 10 07-14-2009 08:45 PM
Permission problem pasting content to the var/www/html folder bluetxxth Fedora 2 10-01-2007 10:53 AM
Whenever I create a file in /var/www/html/, it is at permission 600 (forbidden) Josh1billion Linux - Software 4 03-18-2006 10:24 PM
Creating VSFTPD Full permission User to /var/www/html vibin Linux - General 5 01-03-2006 02:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration