LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-07-2008, 09:49 AM   #1
sar_kasirye
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
Unhappy Couldn't create /home/emailaddress/.openwebmail/db (permission denied)


I have been using my email address well using open web all of sudden it brings and error that couldn't create /home/emailaddress/.openwebmail/db (permission denied).
When i get to cd /home/emailaddress, when i ls -l, it brings up a different email address in the server. Then i tried with chowm -R emailaddress *. This brought up some of which belonged to my email address but the rest of the variables belonged to the other email address.

please help.
 
Old 10-08-2008, 07:14 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
If I understand correctly, you have files in your home directory that are owned by an account different to the one that you are signed in as - and you can't take ownership of those files. The 2 ways I can think of to fix this are:
Code:
sudo chown -R emailaddress:emailaddressgroup /home/emailaddress

or

su -
chown -R emailaddress:emailaddressgroup /home/emailaddress
If I've misunderstood, can you provide some more details please?
 
Old 10-08-2008, 07:36 PM   #3
Savet
Member
 
Registered: Nov 2004
Distribution: Slackware
Posts: 73

Rep: Reputation: 15
Correct me if I am wrong, but it sounds as if the program you are running uses multiple e-mail accounts, and some files are owned by one account, the rest are owned by the other account.

Being unsure of the details of the program, and it's configuration options... it is writing the files to your home directory owned by your true user account.

The simplest fix I can think of is to find the group that it's assigning these files to, and then make the files writable by the group, or by all users if they are not owned by the same group.

You can verify the group by using the ls: -ld <filename>

For instance, on my machine, one of my directories returns the following:

drwxr-xr-x 2 root root 4096 2008-06-06 23:48 bin

In this instance, the first root is the user, and the 2nd root is the group.

As the first response mentioned, you could change this with the chown command:

chown username:group <filename>

and use the -R flag if you wish to make it recursive.

To make the files writable by all users of the owner, the group, but not writable by anyone else, you can run:

chmod 770 <filename>

using the -r flag to make it recursive.

To make it writable by everyone, it would be:

chmod 777 <filename>
 
Old 10-09-2008, 08:33 AM   #4
sar_kasirye
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up Thanks

This has really worked for me thanks a lot. who ever this is, i am really glad you just saved me

Last edited by sar_kasirye; 10-09-2008 at 08:34 AM. Reason: missing word
 
Old 05-01-2011, 03:01 AM   #5
nuwaneranda
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: 0
Thumbs up thanks.... gilead

thanks gilead, fixed my problem by ur way
 
  


Reply

Tags
can, do


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 denied to execute anything under /home ErrorBound Linux - Software 8 07-26-2006 10:21 AM
Couldn't create socket: Permission denied piforever Fedora 9 12-22-2005 05:52 PM
permission denied to home directory ekdya Debian 3 11-08-2005 05:24 PM
permission denied if I want to create new folder dodo1983 Linux - Newbie 2 08-14-2004 11:46 PM
moved home: permission denied mtb Linux - Software 4 12-17-2003 07:09 AM


All times are GMT -5. The time now is 04:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration