🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.linux.networking
9 messages
9 total messages Started by Michael Sat, 22 Jun 1996 00:00
how do U get root status on NFS mounted directories
#433
Author: Michael
Date: Sat, 22 Jun 1996 00:00
29 lines
1408 bytes
using the NFS daemon on linux, how do you 
retain root status on the remotely mounted files??

the usual stuff for unix does not appear to work 

i.e. 

******** exports **********

/dir     -rw=host,access=host,root=host

nor does

/dir     (rw) host

how does root write or create files on the remote system
without explicitly setting all the directories mode 777 ??

It appears that the options

root_squash      does not permit root access ( maps to -2 per docs )
and
no_root_squash   does not permit root access ( does not map at all )


any help out there??

Michael
Re: how do U get root status on NFS mounted directories
#434
Author: Drew Hamilton
Date: Mon, 24 Jun 1996 00:00
21 lines
1707 bytes
In article <4qhvhq$30d@nntp1.best.com>,
Michael  <webmaster@girlswear.com> wrote:
>using the NFS daemon on linux, how do you 
>retain root status on the remotely mounted files??
>
>the usual stuff for unix does not appear to work 
>how does root write or create files on the remote system
>without explicitly setting all the directories mode 777 ??

I don't think you can.  Even if you could, you shouldn't, since this
can cause big security risks.

Better way to do it is to su to whoever owns the file over NFS, and 
then you can read and write to your heart's content.

---
Drew Hamilton   UW Math/CS   http://www.csclub.uwaterloo.ca/u/awhamilt
char *Girlfriend=NULL;            int languages[3]={English,French,C};
#include<fdc.h>   #define DREAMGIRL "Belle"   const int status=SINGLE;
"Je veux m'envoler dans le bleu de l'espace..."   - Belle, lBelB, 1991
Re: how do U get root status on NFS mounted directories
#435
Author: Heiko Schlittermann
Date: Wed, 26 Jun 1996 00:00
25 lines
1533 bytes
In article <4qhvhq$30d@nntp1.best.com>,
Michael  <webmaster@girlswear.com> wrote:
>using the NFS daemon on linux, how do you 
>retain root status on the remotely mounted files??
>the usual stuff for unix does not appear to work 
>******** exports **********
>/dir     -rw=host,access=host,root=host
>nor does
>/dir     (rw) host

Try 'man 5 exports' ...

# /etc/exports: the access control list for filesystems which may be exported
#		to NFS clients.  See exports(5).
/cd *.lotte.sax.de (ro, root_squash)
/home/bmt/heiko	icm.lotte.sax.de(root_squash)
/usr/local/bin jang.lotte.sax.de (ro, root_squash)
/home/bmt/bmt/kmtdat jang.lotte.sax.de (rw, root_squash)
/var/spool/news jang.lotte.sax.de (ro, root_squash)

And read about the opposite to root_squash ...
And think about security....

Heiko
Re: how do U get root status on NFS mounted directories
#436
Author: lblanton
Date: Sun, 30 Jun 1996 00:00
14 lines
850 bytes
Michael,
>******** exports **********

>/dir     -rw=host,access=host,root=host

>nor does

>/dir     (rw) host
I think the proper format is:
/dir host(rw)

Good luck.
Ethan
Re: how do U get root status on NFS mounted directories
#437
Author: john timmers
Date: Mon, 01 Jul 1996 00:00
20 lines
1201 bytes
lblanton@dayton.net wrote:
> 
> Michael,
> >******** exports **********
> 
> >/dir     -rw=host,access=host,root=host
> 
> >nor does
> 
> >/dir     (rw) host
> I think the proper format is:
> /dir host(rw)
> 
> Good luck.
> Ethan

As a matter of fact, the correct answer is:

/dir host(rw, no_root_squash)
Re: how do U get root status on NFS mounted directories
#438
Author: jensenj
Date: Tue, 02 Jul 1996 00:00
31 lines
2123 bytes
awhamilt@calum.csclub.uwaterloo.ca (Drew Hamilton) wrote:

>In article <4qhvhq$30d@nntp1.best.com>,
>Michael  <webmaster@girlswear.com> wrote:
>>using the NFS daemon on linux, how do you 
>>retain root status on the remotely mounted files??
>>
>>the usual stuff for unix does not appear to work 
>>how does root write or create files on the remote system
>>without explicitly setting all the directories mode 777 ??

>I don't think you can.  Even if you could, you shouldn't, since this
>can cause big security risks.

>Better way to do it is to su to whoever owns the file over NFS, and 
>then you can read and write to your heart's content.

>---
>Drew Hamilton   UW Math/CS   http://www.csclub.uwaterloo.ca/u/awhamilt
>char *Girlfriend=NULL;            int languages[3]={English,French,C};
>#include<fdc.h>   #define DREAMGIRL "Belle"   const int status=SINGLE;
>"Je veux m'envoler dans le bleu de l'espace..."   - Belle, lBelB, 1991

Don't do ;ike I did and trust the man exports page! On the linux nfs
server in the /etc/exports file specify "no_root_squash". It works for
me. By the way, don't pay any attention to all this crap about not
logging in as root. If your like me and many others I know you have a
linux stand alone workstation at home and you are trying to learn
about Unix. If this is the case then EVERYTHING you do on the box
requires root access!!!
Re: how do U get root status on NFS mounted directories
#439
Author: Jeremy Doran
Date: Mon, 08 Jul 1996 00:00
15 lines
1770 bytes
 > awhamilt@calum.csclub.uwaterloo.ca (Drew Hamilton) wrote:
 > 
 > Don't do ;ike I did and trust the man exports page! On the linux nfs
 > server in the /etc/exports file specify "no_root_squash". It works for
 > me. By the way, don't pay any attention to all this crap about not
 > logging in as root. If your like me and many others I know you have a
 > linux stand alone workstation at home and you are trying to learn about
 > Unix. If this is the case then EVERYTHING you do on the box requires root
 > access!!! 

Actually, I learnt about unix from an end user (non root) level. Using root
all the time is a bad thing[tm], one of the reasons being that you will not
know what things need what permissions when you are in a user level where
permissions do not matter.
Re: how do U get root status on NFS mounted directories
#440
Author: Mark Levitt
Date: Tue, 09 Jul 1996 00:00
33 lines
2379 bytes
On 08 Jul 1996 16:44:30 +0100, jcd@demon.net wrote:
> > awhamilt@calum.csclub.uwaterloo.ca (Drew Hamilton) wrote:
> > logging in as root. If your like me and many others I know you have a
> > linux stand alone workstation at home and you are trying to learn about
> > Unix. If this is the case then EVERYTHING you do on the box requires root
> > access!!! 
>
>Actually, I learnt about unix from an end user (non root) level. Using root
>all the time is a bad thing[tm], one of the reasons being that you will not
>know what things need what permissions when you are in a user level where
>permissions do not matter.

  I found that when I first started using Linux I was doing everything in
root as well.  It was just easier.  However, the more I use it, the less I
do in root.  I've discovered that it's much easier to much about and play
around with things when you don't have to worry about screwing something up. 
Logged in as a regular user, I know there's very little I can do to actually
trash the system, so I experiment more.



-- 
____________________________________________________________________

                    Mark E. Levitt
    Department of Speech Communication, Syracuse University
         E-mail:     melevitt@syr.edu
         Home Page:  http://web.syr.edu/~melevitt

PGP fingerprint =  B8 A3 AA A6 0F 83 9A BE  F2 7A 19 F9 15 79 FE A4
Public key available from http://web.syr.edu/~melevitt/pgpkey.html
____________________________________________________________________
Re: how do U get root status on NFS mounted directories
#441
Author: Smash Greywolf
Date: Wed, 10 Jul 1996 00:00
35 lines
2967 bytes
Mark Levitt wrote:
>   I found that when I first started using Linux I was doing everything in
> root as well.  It was just easier.  However, the more I use it, the less I
> do in root.  I've discovered that it's much easier to much about and play
> around with things when you don't have to worry about screwing something up.
> Logged in as a regular user, I know there's very little I can do to actually
> trash the system, so I experiment more.

Very true...  A properly configured UNIX (Linux for this matter) system sould
be VERY usable when logged in as a regular user.  For day to day use, reading
news, webbing, programming in C, and C++  (Non system programming) , mail, MUCK,
irc, etc...  My regular user account is more than adequate.  If I REALLY need
root, it's simple enough to click on an icon that I ahve set up, and open a
root shell, and type a password...   or jsut su to root...  

How hard can it possibly be?

-- 
|==============================================|
|                                              |
|       ____/  __ __ /  __  /  ____/  /    /   |        _
|      /      /  /  /  /   /  /      /    /    |       / \      _-'
|     ___ /  /  /  /  __  /  ___ /  ___  /     |     _/|  \-''- _ /
|        /  /  /  /  /   /      /  /    /      |__-' { |          \
|   ____/  /  /  /  /   /  ____/  /    /       |    /             \      
|                                              |    /       "o.  |o }   
|==============================================|    |            \ ;    
|        smash@jupiter.cse.utoledo.edu         |                  ',     
|        http://cse.utoledo.edu/~smash         |       \_         __\     
|      SMASH GREYWOLF of the BLACK SWAMP       |         ''-_    \.//      
| War Eagle Clan - Mighty Tribe of the TUCHUX! |           / '-____' 
|                                              |          / 
|      mailto:smash@wolfserv.norden1.com       |        _'
|
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads