LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-30-2005, 05:08 PM   #1
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Rep: Reputation: 30
'permission denied' trying to mount a directory


I have FC3 and had a folder on another computer, also FC3, mounted. I had an etry in /etc/fstab to auto mount it and it worked fine. I have not used this computer for a while and now when I boot into Linux I see that the mounting has failed, reason given was 'permission denied'. If I boot into WinXP I can browse the folder just fine, it is just while in Linux that I have a problem.

I tried to mount the folder after Linux started but I am still denied permission. I am not sure what changed as it used to mount just fine. I'm sure that it is something simple but I am drawing a blank. Thanks.

Todd
 
Old 09-30-2005, 06:09 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
try the mount manually - copy and past the command you use and the responce to this thread.

did you remember to start samba first?
is your firewall letting the request through?
is rpc going?
 
Old 10-04-2005, 02:31 PM   #3
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Original Poster
Rep: Reputation: 30
Here is the command and the reply:
Code:
[root@linux4500 ~]# mount acsserver:/home /home/tparks/server
mount: acsserver:/home failed, reason given by server: Permission denied
[root@linux4500 ~]#
Samba and RPC are running and I have turned off the firewall.

When I log in under WinXP (on the same machine) it works fine and I am using the same username/password combo for both Linux and Win.

Thanks

Todd
 
Old 10-04-2005, 09:01 PM   #4
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,752

Rep: Reputation: 189Reputation: 189
Try
Code:
#mount <userID>@acsserver:/home /home/tparks/server
or
Code:
#mount <userID>@acsserver:/home/<username> /home/tparks/server
 
Old 10-08-2005, 10:38 AM   #5
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Original Poster
Rep: Reputation: 30
I tried that and I got:
Code:
[root@linux4500 ~]# mount tparks@acsserver:/home /home/tparks/server
mount: can't get address for tparks@acsserver
What is interesting (at least to me...) is that I tried to mount the directory from my laptop (identical login and password) and it worked fine. It mounted and I was able to explore the whole thing no problem. It seems to be with this one particular computer.

Todd
 
Old 10-08-2005, 11:41 AM   #6
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,752

Rep: Reputation: 189Reputation: 189
I don't know, have you checked it for a DNS issue? Trying to mount it by IP? You are trying to use NFS I presume.
Try several ways to see if you can get to the bottom of it.

mount -t nfs tparks@192.168.1.2:/home /home/tparks/server

You might not be able to mount the whole /home dir, you may have to mount the users dir.

mount -t nfs tparks@192.168.1.2:/home/<user> /home/tparks/server

you may have to use the -o switch
-o username=whatever,password=whatever

Linux is nifty isn't it? Sometimes it makes you fight for every square inch.

When you get it you'll feel accomplishment though.
 
Old 10-10-2005, 11:57 PM   #7
dhruvypatel
Member
 
Registered: Oct 2005
Location: Bangalore,India
Distribution: Debian
Posts: 37

Rep: Reputation: 15
The only problem is you are using wrong syntax.
try #mount -o username=..... /acsserver//home /home/tparks/server
 
Old 10-11-2005, 12:00 AM   #8
dhruvypatel
Member
 
Registered: Oct 2005
Location: Bangalore,India
Distribution: Debian
Posts: 37

Rep: Reputation: 15
sorry I also typed wrong one The actual command is
#mount -o username=..... //acsserver/home /home/tparks/server
 
Old 10-29-2005, 01:44 PM   #9
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Original Poster
Rep: Reputation: 30
I tried using all the above suggestions but to no avail, I keep getting various error messages and permission denied results. It is interesting that I am able to mount the server from my laptop but not the desktop. I can even access it through Win XP on the desktop, it in only in Linux that I am denied permission.

I can't imagine that it is a DNS issue, if it was then I doubt that I would get to the point were it would be denying permission. I even did a fresh install of RH4 and it didn't change a thing.

Again, here is the command that I am using and the resulting message:
Code:
[root@localhost tparks]# mount acsserver:/home /home/tparks/server
mount: acsserver:/home failed, reason given by server: Permission denied
I appreciate all of the help but so far I am still stuck...

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

Original Poster
Rep: Reputation: 30
I just wiped the hard drive and installed Suse Linux 10 (wanted to try it out) and I am having the same problem, this is strange. Seems no matter what I do I cannot mount the folder on my server (which is FC3). It used to mount just fine, I really cannot remember when I began to have a problem, what change I may have made that started this. My laptop mounts it just fine (FC4).

I guess that I am going to have one hell of a sense of accomplishment when I finally get this one figured out...

Todd
 
Old 10-31-2005, 02:49 AM   #11
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Try creating another directory, set it up as a share like normal, and try mounting that.

Record everything you did to set it up and so on and so forth - be pedantic.

Otherwise it sounds like everything is going.

It's a bit of a puzzle to me since my system automatically mounts all the shares it can see. I may have to ressurrect my home network to check this out.
 
Old 11-01-2005, 03:03 AM   #12
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,268

Rep: Reputation: 119Reputation: 119
I had a similar problem, "permission denied" and "no such file or directory".
It was in my case SE-Linux that was the cause.( Checking iptables and firewall does not include SE-Linux). Maybe you should check that.
 
Old 11-03-2005, 08:43 AM   #13
awtoc123
Member
 
Registered: Apr 2002
Location: China
Distribution: Suse 10
Posts: 225

Rep: Reputation: 30
I also have a strange one with Suse 10 before I had a Fedora 2 server and everything workid correct ( Printers NFS share - scanners ) all networked, then the computer started to give problems, and I purchased a new server P4 2.66 - 64Bit 200GB SATA hard disk 1GB ram, and as all my workstations have Suse 10 installed I installed Suse 10 on the server, and the following happens:

1 ) Printers have four instlled all works perfect on all workstations
2 ) Scanners have three all works perfect on all workstations
3 ) NFS export works on all workstations can read and write, but now the strange thing I can not open any documnts from openoffice 2.0 from the server I get " general input/output error " but from Koffice I can open any documents from the server for read/write no problem, firewall is switched OFF. If I copy the document from the server to the local home folder then I can read & write to the document from open office 2.0. I wonder if it is a DNS issue even everything else on the network works correct, and samba works on the only windows machine, but NFS, remember I can read/write to the server folder, but not open documents in open office or Star office 8 direct from the server.
 
Old 11-04-2005, 08:25 PM   #14
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Original Poster
Rep: Reputation: 30
What should I check with SELinux? I see a tab for SELinux under Security Level Configuration but I am not certain what I am looking for that might be causing the problem. Thanks.

Todd
 
Old 11-05-2005, 07:45 AM   #15
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Original Poster
Rep: Reputation: 30
OK, this is interesting...

I shut off SELinux on the server (FC3) and rebooted and I was then able to mount the directory to the workstation (Suse 10); however. I am not able to browse my home folder, tparks, on the server. I am able to browse it when I mount the directory while using another computer or when I use the same computer but booted into windows. My login on this computer is identical to when I login to any other machine.

The user 'tparks' on the server is a member of the group 'tparks' but on the Suse workstation was not. On the workstation I created the 'tparks' group and added 'tparks' as a member and tried again but still did not work. The permissions on the server for the folder are set to 770.

As a side note, I restarted SELinux on the server and I am still able to mount the directory on the Suse workstation. Could SELinux have just been hung up? I am not ever sure what SELinux does (Google here I come...).

Again, thanks for all of the advise, I am getting there; scratching and clawing my way but getting there nonetheless...

Todd
 
  


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


All times are GMT -5. The time now is 01:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration