Submitted by andrewrimmer on Sun, 09/12/2010 - 15:23
Hi
I think I deleted some files by accident(without thinking) and when I try install a server I get this error:
Failed to create virtual server : Failed to open /home/albastru/.bash_logout for writing : Permission denied
Please help
Status:
Closed (fixed)
Comments
Submitted by andreychek on Sun, 09/12/2010 - 15:28 Comment #1
It looks like you're seeing some sort of permissions issue. The error you're getting suggests that the user in question doesn't have permission to edit the .bash_logout file in their home directory.
What do you see if you log into your server as root, and type these commands:
ls -l /home/albastru/.bash_logout
ls -ld /home/albastru
ls -ld /home/albastru/public_html
The output of the above commands should help us figure out what's going awry. Thanks!
Submitted by andrewrimmer on Sun, 09/12/2010 - 15:41 Comment #2
ls -l /home/albastru/.bash_logout
ls: cannot access /home/albastru/.bash_logout: No such file or directory
Only albastru folder was created with noting in it
ls -ld /home/albastru
drwxr-x--- 2 albastru albastru 4096 Sep 13 00:20 /home/albastru
ls -ld /home/albastru/public_html
This was the full output:
Creating administration group albastru ..
.. done
Creating administration user albastru ..
.. done
Creating aliases for administration user ..
.. done
Adding administration user to groups ..
.. done
Creating home directory ..
Failed to create virtual server : Failed to open /home/albastru/.bash_logout for writing : Permission denied
Just before this I was restoring a server but it failed to install
Submitted by JamieCameron on Sun, 09/12/2010 - 16:06 Comment #3
Is there a .bash_logout file in the /etc/skel directory, and if so what permissions does it have?
Submitted by andrewrimmer on Sun, 09/12/2010 - 16:16 Comment #4
-rw-r--r-- 1 root root 220 May 12 2008 /etc/skel/.bash_logout
Submitted by JamieCameron on Sun, 09/12/2010 - 18:17 Comment #5
Do you happen to remember which files you deleted just before this problem started happening?
Submitted by andrewrimmer on Mon, 09/13/2010 - 11:15 Comment #6
No I don't.
What happened was I opened up a compressed file in the /home directory. I thought it was one folder, but it was many, so I deleted them, the error happened just after that, so that's why I think I might of deleted something. I had also restored a backup which failed, so it might have something to do with that also.
In the /home folder apart from the server folders there is an ftp folder and no files.:
The server install fails, but it does install a user and the server directory, but nothing in it.
Submitted by JamieCameron on Mon, 09/13/2010 - 12:39 Comment #7
Ok, I think that might explain it ..
What are the permissions on the /home directory, as shown by
ls -ld /home
Submitted by andrewrimmer on Mon, 09/13/2010 - 12:41 Comment #8
drwxr-x--- 7 toiletrage toiletrage 4096 Sep 13 10:56 /home
Submitted by JamieCameron on Mon, 09/13/2010 - 12:43 Comment #9
Ok, that's the problem. The /home directory should be mode 755 and owned by root:root
Fix this with :
chown root:root /home
chmod 755 /home
Submitted by andrewrimmer on Mon, 09/13/2010 - 12:47 Comment #10
Thankyou
That worked. :)
Submitted by JamieCameron on Mon, 09/13/2010 - 13:25 Comment #11
Submitted by Issues on Mon, 09/27/2010 - 16:20 Comment #12
Automatically closed -- issue fixed for 2 weeks with no activity.