Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
09-30-2005, 05:08 PM
|
#1
|
Member
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Rep:
|
'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
|
|
|
09-30-2005, 06:09 PM
|
#2
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
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?
|
|
|
10-04-2005, 02:31 PM
|
#3
|
Member
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
|
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
|
|
|
10-04-2005, 09:01 PM
|
#4
|
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,412
|
Try
Code:
#mount <userID>@acsserver:/home /home/tparks/server
or
Code:
#mount <userID>@acsserver:/home/<username> /home/tparks/server
|
|
|
10-08-2005, 10:38 AM
|
#5
|
Member
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
|
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
|
|
|
10-08-2005, 11:41 AM
|
#6
|
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,412
|
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.
|
|
|
10-10-2005, 11:57 PM
|
#7
|
Member
Registered: Oct 2005
Location: Bangalore,India
Distribution: Debian
Posts: 37
Rep:
|
The only problem is you are using wrong syntax.
try #mount -o username=..... /acsserver//home /home/tparks/server
|
|
|
10-11-2005, 12:00 AM
|
#8
|
Member
Registered: Oct 2005
Location: Bangalore,India
Distribution: Debian
Posts: 37
Rep:
|
sorry I also typed wrong one The actual command is
#mount -o username=..... //acsserver/home /home/tparks/server
|
|
|
10-29-2005, 01:44 PM
|
#9
|
Member
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
|
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
|
|
|
10-30-2005, 04:42 PM
|
#10
|
Member
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
|
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
|
|
|
10-31-2005, 02:49 AM
|
#11
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
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.
|
|
|
11-01-2005, 03:03 AM
|
#12
|
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350
Rep: 
|
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.
|
|
|
11-03-2005, 08:43 AM
|
#13
|
Member
Registered: Apr 2002
Location: China
Distribution: Suse 10
Posts: 225
Rep:
|
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.
|
|
|
11-04-2005, 08:25 PM
|
#14
|
Member
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
|
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
|
|
|
11-05-2005, 07:45 AM
|
#15
|
Member
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 09:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|