What is the permission of /

nicsopon

Verified User
Joined
Jul 4, 2006
Messages
98
Hi

I make a mistake with my personel VPS with Directadmin with this command line.

chmod 644 user.admin.bsgolf.tar.gz /

I set permission of the backup file for wget but I enter a / later. So now both the file and / are 644.

My sites are all forbidden.

What is the permission I should set for / to bring it life again.

"chmod ??? /"

Thanks in advanced.
 
Hello,

I've got this:

Code:
[my@server ~]$ ls -ld /
dr-xr-xr-x. 25 root root 4096 Dec  4 00:06 /
[my@server ~]$
 
Thanks so much. I fix it with

chmod 555 /

and it get this:

[root@members danginx]# ls -ld /
dr-xr-xr-x 22 root root 4096 Feb 19 12:49 /

The different is 25 and 22. How to set it to 25 as normal or 22 is OK?

Thanks so much
 
The different is 25 and 22. How to set it to 25 as normal or 22 is OK?
For the purpose of explanation: That's based on the size of the Directory; it may be the number of nodes used by the file (directories are implemented as files), though I'm not positive and I haven't looked it up. Note that even if you delete the entire contents of a directory, the number will never go down.

Jeff
 
Back
Top