LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-22-2002, 01:52 PM   #1
Sonny
Newbie
 
Registered: Jan 2002
Location: Burnaby British Columbia
Distribution: Redhat 7.1
Posts: 25

Rep: Reputation: 15
mounting a network drive...


Hi Guys,

I'm trying to mount a couple of network directories. I've gotten the following message:

mount dev1:/usr failed, reason given by server: Permission denied.

Funny thing is I've mounted dev1:/home which has exactly the same permissions. Here is the ls -l for these directories:

drwxr-xr-x 37 root root home
drwxr-xr-x 23 root root usr

Now, I am connecting from my laptop and the root password on my laptop is different from what is on dev1.

Any ideas anyone?

Sonny.
 
Old 01-22-2002, 02:05 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Re: mounting a network drive...

Quote:
Originally posted by Sonny
Hi Guys,

I'm trying to mount a couple of network directories. I've gotten the following message:

mount dev1:/usr failed, reason given by server: Permission denied.

Funny thing is I've mounted dev1:/home which has exactly the same permissions. Here is the ls -l for these directories:

drwxr-xr-x 37 root root home
drwxr-xr-x 23 root root usr

Now, I am connecting from my laptop and the root password on my laptop is different from what is on dev1.

Any ideas anyone?

Sonny.
You're using NFS I'm assuming now. You need to export every seperate filesystem seperate in the /etc/exports file

If you have a line like:/ 192.168.4.2(rw,no_root_squash)

and /usr is on a different partition, it won't work. You have to add a seperate export for /usr
 
Old 01-22-2002, 02:33 PM   #3
Sonny
Newbie
 
Registered: Jan 2002
Location: Burnaby British Columbia
Distribution: Redhat 7.1
Posts: 25

Original Poster
Rep: Reputation: 15
Hi Gerard,

Yes I am using NFS and yes the usr directory is on a separate partition. I've modified my dev1:/etc/exports file to the following:

/usr Selusa_Secundus(rw,no_squash_root)


However, I am still getting the same "Permission denied" message.

Sonny.
 
Old 01-22-2002, 02:38 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
run 'exportfs' to see what NFS *thinks* it's exported
 
Old 01-22-2002, 02:39 PM   #5
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Quote:
Originally posted by Sonny
Hi Gerard,

Yes I am using NFS and yes the usr directory is on a separate partition. I've modified my dev1:/etc/exports file to the following:

/usr Selusa_Secundus(rw,no_squash_root)


However, I am still getting the same "Permission denied" message.

Sonny.
that line is identical to other directories in /etc/exports ?

did you run "exportfs -ra"? This will re-export all the exported things. You need to do that in order for the newly added export to be available.

If it still doesn't work check the server's system log file for additional error. This file may be called /var/log/sys.log sometimes it's called something else, so have a look at /var/log
 
Old 01-22-2002, 03:22 PM   #6
Sonny
Newbie
 
Registered: Jan 2002
Location: Burnaby British Columbia
Distribution: Redhat 7.1
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks!

Thanks Gerard and Chris!

The exportfs -ra did the trick!

Sonny.
 
Old 01-24-2002, 12:08 PM   #7
Sonny
Newbie
 
Registered: Jan 2002
Location: Burnaby British Columbia
Distribution: Redhat 7.1
Posts: 25

Original Poster
Rep: Reputation: 15
Permissions on mounted drive...

Hi Guys,

I seem to be having trouble accessing my files on the mounted drive. I believe the problem is related to the different uid that is assigned to me on the remote file system. On my local drive, my uid is 500 (I got this from looking in /etc/passwd) while on the remote system, my uid is 518. How do I make the remote file system recognize that sonny(uid=500 on the local system) is equivalent to sonny(uid=518 on the remote sytem)?

Sonny.

 
  


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
Mounting a network Drive ruslombia Linux - Networking 1 08-28-2005 04:17 AM
Mounting a network drive DanW85 Linux - Newbie 3 03-28-2005 04:23 PM
mounting network drive viper52b Linux - Networking 2 03-10-2004 12:59 PM
mounting network drive? phatboyz Linux - Networking 3 03-02-2004 11:11 AM
mounting network drive Canadian_2k2 Linux - Networking 4 01-04-2004 11:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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