Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.