LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File owner nobody (https://www.linuxquestions.org/questions/linux-newbie-8/file-owner-nobody-4175421386/)

nsblenin 08-10-2012 07:31 AM

File owner nobody
 
Hello

I'm using a ssh to access to a server hosting. I wanted to delete some directories but I realized that i could not delete some files because the owner of those file is "nobody". I wanted to change the owner using chown but I have no permission to do this:


-rw-r--r-- 1 nobody nobody 0 Jun 16 2010 shipped.txt
-rw-r--r-- 1 nobody nobody 493 Jun 16 2010 test.html
-rw-r--r-- 1 nobody nobody 72 Jun 16 2010 test.txt
-rw-r--r-- 1 nobody nobody 1634 Jun 16 2010 voucher.html
-rw-r--r-- 1 nobody nobody 421 Jun 16 2010 voucher.txt
-jailshell-3.2$ rm voucher.txt
rm: remove write-protected regular file `voucher.txt'? y
rm: cannot remove `voucher.txt': Permission denied
-jailshell-3.2$ chown s10889c1 voucher.txt
chown: changing ownership of `voucher.txt': Operation not permitted
-jailshell-3.2$

Should I contact with the administration staff? Thank you

MensaWater 08-10-2012 08:21 AM

Is this an NFS mount? Run "df -h ." on the directory the files are in to see what it is mounted from. If you see an IP or hostname followed by a colon then it is an NFS mount. With NFS the filesystem has to be exported to explicitly allow root to do things - by default root isn't allowed to do things.

If it is an NFS mount and you have access to the system shown before the colon by hostname or IP you should login to that system and delete the files there. Also it is possible that a NON-root user login on the host on which you became root DOES have the ability to delete files. You might want to try a NON-root login instead of root.

nsblenin 08-10-2012 08:28 AM

Quote:

-rw-r--r-- 1 nobody nobody 421 Jun 16 2010 voucher.txt
-jailshell-3.2$ fd -h
-jailshell: fd: command not found
-jailshell-3.2$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 996M 660M 284M 70% /lib
/dev/root 996M 660M 284M 70% /sbin
/dev/root 996M 660M 284M 70% /opt
/dev/root 996M 660M 284M 70% /lib64
/dev/root 20G 11G 7.7G 59% /usr/lib
/dev/root 20G 11G 7.7G 59% /usr/lib64
/dev/root 20G 11G 7.7G 59% /usr/sbin
/dev/root 20G 11G 7.7G 59% /usr/share
/dev/root 20G 11G 7.7G 59% /usr/bin
/dev/root 20G 11G 7.7G 59% /usr/man
/dev/root 20G 11G 7.7G 59% /usr/X11R6
/dev/root 20G 11G 7.7G 59% /usr/kerberos
/dev/root 20G 11G 7.7G 59% /usr/libexec
/dev/root 20G 11G 7.7G 59% /usr/local/bin
/dev/root 20G 11G 7.7G 59% /usr/local/share
/dev/root 20G 11G 7.7G 59% /usr/local/Zend
/dev/root 20G 11G 7.7G 59% /usr/local/IonCube
/dev/root 20G 11G 7.7G 59% /usr/include
/dev/root 20G 11G 7.7G 59% /usr/local/lib
/dev/root 30G 21G 7.1G 75% /var/spool
/dev/root 30G 21G 7.1G 75% /var/lib
/dev/root 30G 21G 7.1G 75% /var/cpanel
/dev/root 20G 11G 7.7G 59% /usr/local/cpanel/Cpanel
/dev/root 30G 21G 7.1G 75% /var/run
/dev/root 30G 21G 7.1G 75% /var/log
/dev/root 996M 150M 795M 16% /tmp
/dev/root 4.0G 128K 4.0G 1% /dev
/dev/root 996M 660M 284M 70% /bin
/dev/root 20G 11G 7.7G 59% /usr/local/apache/domlogs
/dev/root 996M 660M 284M 70% /etc/mail
/dev/root 481G 393G 64G 87% /home/s10889c1

It seems not to be an NFS mount

Mr. Alex 08-10-2012 08:30 AM

nsblenin, wrap your code up with forum tags. It's annoying when people paste code as is.

EDIT:
nsblenin, not quote. Code.

MensaWater 08-10-2012 08:50 AM

You left out the dot.

Code:

df -h .
Also try:
Code:

cat /etc/mtab

nsblenin 08-10-2012 09:17 AM

Code:

-rw-r--r-- 1 nobody nobody  421 Jun 16  2010 voucher.txt
-jailshell-3.2$ df -h .
Filesystem            Size  Used Avail Use% Mounted on
/dev/root            481G  393G  64G  87% /home/s10889c1


nsblenin 08-10-2012 09:18 AM

Code:


-jailshell-3.2$ cat /etc/mtab
/dev/root /lib virtfs defaults 0 0
/dev/root /sbin virtfs defaults 0 0
/dev/root /opt virtfs defaults 0 0
/dev/root /lib64 virtfs defaults 0 0
/dev/root /usr/lib virtfs defaults 0 0
/dev/root /usr/lib64 virtfs defaults 0 0
/dev/root /usr/sbin virtfs defaults 0 0
/dev/root /usr/share virtfs defaults 0 0
/dev/root /usr/bin virtfs defaults 0 0
/dev/root /usr/man virtfs defaults 0 0
/dev/root /usr/X11R6 virtfs defaults 0 0
/dev/root /usr/kerberos virtfs defaults 0 0
/dev/root /usr/libexec virtfs defaults 0 0
/dev/root /usr/local/bin virtfs defaults 0 0
/dev/root /usr/local/share virtfs defaults 0 0
/dev/root /usr/local/Zend virtfs defaults 0 0
/dev/root /usr/local/IonCube virtfs defaults 0 0
/dev/root /usr/include virtfs defaults 0 0
/dev/root /usr/local/lib virtfs defaults 0 0
/dev/root /var/spool virtfs defaults 0 0
/dev/root /var/lib virtfs defaults 0 0
/dev/root /var/cpanel virtfs defaults 0 0
/dev/root /usr/local/cpanel/Cpanel virtfs defaults 0 0
/dev/root /var/run virtfs defaults 0 0
/dev/root /var/log virtfs defaults 0 0
/dev/root /tmp virtfs defaults 0 0
/dev/root /dev virtfs defaults 0 0
/dev/root /bin virtfs defaults 0 0
/dev/root /usr/local/apache/domlogs virtfs defaults 0 0
/dev/root /etc/mail virtfs defaults 0 0
/dev/root /home/s10889c1 virtfs defaults 0 0
none /proc proc rw 0 0
-jailshell-3.2$


MensaWater 08-10-2012 10:53 AM

mtab shows your filesystem type is virtfs. That appears to be some sort of virtual or jailed filesystem on a quick check.

Unfortunately I've not worked with that fs type. You might want to do a web search for "virtfs nobody" to see what it shows you.

You may also have man pages for it on the system. Type "man -k virtfs" to see which, if any, man pages exist then review the ones found.


All times are GMT -5. The time now is 04:15 PM.