LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2007, 07:13 AM   #1
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Rep: Reputation: 30
cannot delete existing folders


Hai all,

Help me out with the following scenario :


test server : test.com.su
production server : prod.com.su

I mounted a nfs /d05 drive from the test server


etc/fstab from test :
/dev/sda5 /d01 ext3 defaults 0 0
/dev/sda6 /d02 ext3 defaults 0 0
/dev/sda7 /d03 ext3 defaults 0 0
/dev/sdb /d04 ext3 defaults 0 0
/dev/sdc1 /d05 ext3 defaults 0 0


etc/exports from test :

[root@oracle /]# cat /etc/exports

/d03 prod.com.su(rw)
/d02 prod.com.su(rw)
/d05 prod.com.su(rw)


I mounting the drive d05 (test) to production(d08) as follows :

B]etc/fstab from prod :[/B]

test:/d05 /d08 nfs defaults 0 0


command : mount -t nfs test:/d05 /d08
this gets the drive mounted in the prod server as d08 and it works fine.. but the root user in the prod server doesnt have access to delete the files in d05 which was created by the root user in test
root in prod can read , and create any files.. he cannot delete the existing files or write to the exisitng files

I need the root user to write to the existing folder created by the root user in test

is this possible ?.. if so , how ?

please guide

Yusuf
 
Old 12-02-2007, 08:02 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think someone already provided an answer in a similar message you posted. The root user is squashed to user nobody.

You need to add the "no_root_squash" option.

See the manpage for "exports" and "idmap.conf".

You didn't post the permissions of the directories being shared. That is another part of the equation. For example, suppose that the permissions are
rwxrwxrwt. In this case, one user will not be able to delete another users files.
These are the permissions you want for a globally writable share. However, you would want it mounted on a partition with the "noexec" and "nodev" options for security reasons.

Last edited by jschiwal; 12-02-2007 at 08:05 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't delete Folders. duffmckagan SUSE / openSUSE 1 09-19-2005 12:09 PM
HELP: can't delete files/folders :( kevingpo General 1 12-07-2004 08:51 PM
set FC2 to open sub folders in existing window aaronruss Fedora 3 06-09-2004 04:12 PM
Can you delete folders after ./configure ? iLLuSionZ Linux - Newbie 2 11-19-2003 08:39 PM
Am I able to delete folders after install? SuSE_Surfer Linux - General 6 10-18-2003 12:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:27 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