LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-19-2008, 11:13 AM   #1
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Rep: Reputation: 31
Files that root can't delete?


I have two systems that are NOT in a NIS. I just make sure that the accounts on one machine have the same user name, UID and password on both systems... On the drive of one server I have a directory shared out with NFS so that both machines can share data. My problem is that on the remote machine I ran "chown -R root /export/myfolder" and now I can't make any changes to that folder from either machine. I can't even delete it as root. What would cause this and how can I gain control back over this directory?

When I do an ls I see that the owner is "root" with a group of "other" so i should at least have control, right?

Thanks for the help!
 
Old 03-19-2008, 12:19 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,338

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by mijohnst View Post
I have two systems that are NOT in a NIS. I just make sure that the accounts on one machine have the same user name, UID and password on both systems... On the drive of one server I have a directory shared out with NFS so that both machines can share data. My problem is that on the remote machine I ran "chown -R root /export/myfolder" and now I can't make any changes to that folder from either machine. I can't even delete it as root. What would cause this and how can I gain control back over this directory?

When I do an ls I see that the owner is "root" with a group of "other" so i should at least have control, right?

Thanks for the help!
Is the folder a mount point? There are restrictions on changing or deleting mount points while they are in use.

-----------------------
Steve Stites
 
Old 03-19-2008, 01:00 PM   #3
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
Is that a restriction that can be disabled? I've never locked root into a situation that I couldn't delete a file or folder before. If I reboot the server do you think I'd be able to regain control?
 
Old 03-19-2008, 01:10 PM   #4
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
The exports file might have a hold of it and not letting go ( unless you are suing autonfs).
rename the exports file and I'd guess you can then change or remove the files or dir in question.
 
Old 03-19-2008, 02:33 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,338

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by mijohnst View Post
Is that a restriction that can be disabled? I've never locked root into a situation that I couldn't delete a file or folder before. If I reboot the server do you think I'd be able to regain control?
If the directory is a mount point then you can umount the file system to make the directory deletable. Some mount points cannot be umounted because Linux is using them permanently. In that case you boot a live CD and manipulate the mount point directory.

But first make sure that the directory in question is actually a mount point and that is actually the problem. Use the mount command:
mount
to list your mount points and take a look at /etc/fstab.

---------------------
Steve Stites
 
Old 03-20-2008, 10:04 PM   #6
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
Thanks for the response all... I just booted to the CD to get them off...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
as root can not delete files in users home spooge Slackware 3 11-16-2007 09:52 PM
hacker got into system and root cannot delete files, See my recovery process. Senza Paura Linux - Security 9 10-26-2007 12:54 PM
Root delete files problems macushk Linux - Security 5 10-23-2006 05:55 AM
can't access/delete/list files even as root... tenshi Linux - General 7 10-13-2004 04:29 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration