Jump to content

Permission problems after NFS service disabling


Guest airportugal
 Share

Recommended Posts

Guest airportugal

Hi there,

 

I run a Mandrake LE 2005 system and wanted to increase the system security by disabling certain startup services. One of them was netfs and his "friend" nfslock. After a reboot, I found out that all the mutex "nfslockfile.lock" files were still in every folder. When trying to ls -l certain folders, the sytem prompts:

 

/var/videogallery/nfslockfile.lock: Permission denied

Unable to open lockfile!

Be sure that '/var/videogallery' exists and that both

the directory and that file are writeable by this user.

Mutex destroy failure: Device or resource busy

 

Even if my user actually owns them and has the right permissions over them. Then I removed the nfslockfile.lock, that seemed to hold the lock, but now I cannot open any of the contents of the folder (and I got all permissions to do so).

 

ls -la /var/videogallery

ls: /var/videogallery/.: Permission denied

ls: /var/videogallery/..: Permission denied

ls: /var/videogallery/cd-dvd: Permission denied

ls: /var/videogallery/shaolin_soccer.avi: Permission denied

 

What's going on? It has anything to do with nfs locks, but I don't know what nor why..

 

Thanks for your help,

xavier

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

did you want to disable the nfs-server ?

 

nfs, nfslock and portmap are services involved with the nfs-server

 

netfs is the client side, it mounts all external network-filesystems on your machine

 

so if you want to disable nfs-server, make sure to disable the services nfs, nfslock and maybe portmap (beware, portmap could be used by some other services)

Link to comment
Share on other sites

Guest airportugal
did you want to disable the nfs-server ?

no, I didn't have any nfs-server on. I wanted to disable the client side services netfs, portmap and nfslock, since I don't use them.

Do you know what's going on with my folder permissions?

 

thanks,

xavier

Link to comment
Share on other sites

netfs should be on when you want to mount samba shares, if the problem is with permission, if you have a root access on that pc (am sure you have since you were able to disble those services mentioned :P ) try to, as root

#chmod 755 -R /var/videogallery

 

that would give permission to

owner - rwx = 7

group - rx = 5

other ( or all users ) - rx = 5

-R = recursive, so the permission will be applied to folder videogallery and all files on it

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...