permission problem!!!
when i try to create a file or folder by standing as root and after that when i check its permission then the gid of root is always the value 500!!
for eg i first logged in as root and i created a file named "pq" in / like this.... [root@server /]# touch pq [root@server /]# ls -ld pq drwxr-xr-x 2 root 500 4096 Sep 30 00:49 pq why that gid is always 500 for me!!! i have no idea to do anything with that..pls help!! |
Post the output of /etc/passwd
|
Wait a second, maybe it is the "d" parameter. Try:
ls -l I think the d is for a directory specifically. |
Quote:
what are you doing ?? loging into the gui as root ? or using one of these two " su " or " su -" in the terminal ? if i had to bet ?? it is su WITHOUT the - please post EXACTLY what you are doing to make that folder in / |
The fact that touch will create a directory instead of a file make me suspect that something is wrong with the root filesystem.
Step 1 is to make sure your file system is ok. First check on which partition your rootdir is mounted Code:
root@orion:/# mount | grep on\ /\ type Code:
# fsck /dev/sdb7 Log in as root Now check your root uid/gid with Code:
root@orion:/# id After that we can take it further. ___________________ Gerrard |
Plese give us the output of
Code:
cat /etc/passwfd |grep -i "root" Code:
id |
All times are GMT -5. The time now is 05:15 PM. |