LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-12-2005, 06:16 PM   #16
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458

Original Poster
Rep: Reputation: 30

Back to square one...

I had to shut down everything as I needed to move my workstation, server, router, etc. When I fired everything back up I was getting a permission denied error whenever I tried to mount the directory to the workstation. I VNCed into the server and disabled SELinux (that worked before) and tried again but I keep getting the same error message.

I created (as root) a directory '/stuff' and changed the permissions to 777. I then tried to mount this directory and got this error:
Code:
linux:~ # mount acsserver:/stuff /home/tparks/server
mount: acsserver:/stuff failed, reason given by server: Permission denied
The firewall on the server is disabled, SELinux on the server is disabled. I can access those directories just fine on my laptop with the same username and password. I even reformatted and replaced FC3 with Suse 10 on the workstation (for a different reason) and still cannot access the server. Now I can access everything fine when I boot into Windows.

Any additional help is appreciated.

Todd
 
Old 11-12-2005, 08:17 PM   #17
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458

Original Poster
Rep: Reputation: 30
I tried to mount by using the ro option and I got an error message that I don't quite understand:
Code:
linux:~ # mount -ro acsserver:/home /home/tparks/server
mount: can't find /home/tparks/server in /etc/fstab or /etc/mtab
Why is it looking for /home/tparks/server in /etc/fstab? My understanding of fstab is that that is where you put entries that you want to automatically mount when the system boots. When I try to mount using the rw option I get the usual:
Code:
linux:~ # mount -rw acsserver:/home /home/tparks/server
mount: acsserver:/home failed, reason given by server: Permission denied
With no mention of /etc/fstab.

I have also re-exported the directory that I want to mount but nothing changed.

Not being able to mount this directory is severly limiting what I can do in Linux for the moment and I have to keep booting into Windows

Any help is appreciated

Todd
 
Old 11-13-2005, 01:26 PM   #18
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458

Original Poster
Rep: Reputation: 30
OK, I am thinking that this is somehow related to the hostname of the computer.

On the server, which runs FC3, I went into 'NFS Server Configuration' GUI and deleted everything then added the two directories that I wanted to add, /home, and /stuff. for the host I listed 'linux' which was the default name of this computer after I installed Suse 10. I then issued the command 'exportfs'. On the workstation I did:
Code:
linux:~ # mount acsserver:/home /home/tparks/server
mount: acsserver:/home failed, reason given by server: Permission denied
I then went to my laptop and issued that same command and got the same result, which surprised me as the laptop previously mounted fine.

I went back to the server and added the host linuxd600 to the 'NFS Server Configuration' GUI as that is the name of the laptop and issued 'exportfs', went back to the laptop and tried again and it worked fine. I also made certain that all of the permissions in the 'NFS Server Configuration' GUI are set to r/w.

The end result is that I can mount the file system on my laptop booted into either Linux (FC4) or WinXP. I can access it from my desktop when booted into WinXP but not when booted into Suse 10. I previously had FC3 on the desktop and was able to mount under that for a while but for some reason I began to get the above error message and then I did a clean install of Suse 10 but got the same result when trying to mount.

I'm lost

Todd
 
Old 11-19-2005, 04:10 PM   #19
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458

Original Poster
Rep: Reputation: 30
for some reason the laptop suddenly was getting a 'permission denied' error everytime I tried to access the server. That left me with no linux machine that I was able to use to access the server. I decided to post in alt.os.linux and got this:
Quote:
>>Give us the accserver /etc/exports file. You've probaby forgot to list
>>the workstation in it.
>
> /home linux(rw,sync)
> /stuff linux(rw,sync)
> /home linuxd600(rw,sync)
> /stuff linuxd600(rw,sync)
>
> The workstation is linux and the laptop is linuxd600. Everything seems to be
> in order in that file (too bad). Thanks for the shot though.

Change your exports file to

/home linux(rw,sync) linuxd600(rw,sync)
/stuff linux(rw,sync) linuxd600(rw,sync)
I changed the exports file as suggested and thankfully the desktop is now able to access the server but no luck with the laptop.

I had a nightmare last night that I was being pecked to death by a bunch of penguins...
 
Old 12-04-2005, 06:50 PM   #20
toreric
Member
 
Registered: Dec 2005
Location: Tväråmark, Sweden
Distribution: Debian/Kubuntu
Posts: 105

Rep: Reputation: 27
Quote:
Originally Posted by leupi
I had a nightmare last night that I was being pecked to death by a bunch of penguins...
Well, I have only two of them and may thus easily throw them out!

During the passed month I have cultivated and purified such a ridiculous "access denied"-story of mine when trying to connect two simple Linux boxes using simple NFS. I'm not as smart as this bug(?), is someone else? Is this thread still alive? Anyhow, here is my story:

Nfs networking - is it possible?

Summary (condensed* in an attempt to exclude a lot of 'related' but seemingly irrelevant information) of extended studies of what happens when nfs file sharing/mounting is initiated using two cable-router-connected Linux 2.6 boxes, both run with nfs-kernel-server (a brief test using nfs-user-server *** sorry *** this story will exceed some 1024 characters of text that I am limited to for some reasom I don't know -- the messsage-length-counter-service says I may submit 54000 characters!?! Browsers: Firefox, Opera, Konqueror, all the same H E L P!
********************************************************
Sorry, my internet provider did 'deconfigure' my connection! Now it's reconfigured and OK. But this thread seems to be dead, I'll start a new one.
********************************************************

Last edited by toreric; 12-08-2005 at 04:52 PM.
 
  


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
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
root gets 'Permission denied' to directory mikemrh9 Linux - Security 2 11-18-2005 04:15 AM
permission denied to home directory ekdya Debian 3 11-08-2005 04:24 PM
cannot mount anything; I'm denied permission help! DemoniX Slackware 5 08-07-2005 11:04 AM
permission denied when opening directory pilot1 Linux - General 1 10-23-2002 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:17 PM.

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