installing new server

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

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!

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

Is there a .bash_logout file in the /etc/skel directory, and if so what permissions does it have?

-rw-r--r-- 1 root root 220 May 12 2008 /etc/skel/.bash_logout

Do you happen to remember which files you deleted just before this problem started happening?

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.

Ok, I think that might explain it ..

What are the permissions on the /home directory, as shown by ls -ld /home

drwxr-x--- 7 toiletrage toiletrage 4096 Sep 13 10:56 /home

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

Thankyou

That worked. :)

Automatically closed -- issue fixed for 2 weeks with no activity.