LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-25-2007, 09:32 AM   #1
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Rep: Reputation: 31
Question removing sticky bit from mounted partition


I'd trying to add a file to an OS X partition (mounted as NFS) from within Linux (Fedora Core 6). I can mount the volume and see its contents, but I cant write to it. I've tried "chown" and "chmod -R 0777", and everything returns errors:
Code:
chmod: changing permissions of `/mnt/macosx/...': Read-only file system
I tried unmounting it and mounting with "mount -o rw " but no better.

What's the right way to mount the volume for editing?
 
Old 03-26-2007, 05:47 AM   #2
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
See what permission the NFS partition has been given.
It may be a read-only partition .

$ showmount NFS_IP

See the permission here
 
Old 03-26-2007, 06:10 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
FYI, the sticky bit prevents one person from deleting another's file. This is needed because deleting a file edits the directory file (to the kernel, it's a normal file) which has write permissions. The file is otherwise protected by it's own permissions.
 
Old 03-26-2007, 08:09 PM   #4
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by zulfilee
See what permission the NFS partition has been given.
It may be a read-only partition .
$ showmount NFS_IP
See the permission here
I can't seem to get showmount to work:
Code:
# /usr/sbin/showmount -a
/usr/sbin/showmount: can't get address for [myhost].[mydomain]
# /usr/sbin/showmount -a [my_IP_address]
mount clntudp_create: RPC: Program not registered
# /usr/sbin/showmount -e [myhost]
mount clntudp_create: RPC: Program not registered
I must be doing something wrong.

jschiwal, thanks. I'm not trying to delete anything from the directory, just add a new file.
 
Old 03-26-2007, 09:06 PM   #5
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
The volume may be exported read-only. man exports
 
Old 03-27-2007, 05:31 AM   #6
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Sorry
showmount
does not show the permissions.It shows the hosts allowed to mount a share from the nfs pc.

And f.y.i the proper showmount command is

$ showmount -e ip_of_nfspc

[The ip must be the ip or hostname of the pc from which u are mounting the share].


Use exports and exportfs.

Check the man page for exportfs too.
 
Old 04-16-2007, 08:20 PM   #7
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Original Poster
Rep: Reputation: 31
Thanks, but I'm seeing a lot here about IPs and remote shares. Maybe that's why I'm getting confused: these are all partitions on the same computer. Fedora is mounting this partition automatically as "NFS", but I'm not sure why. I'm also not knowingly importing or exporting anything, and I read the exports man page but didn't get much from in in this regard.
 
Old 04-17-2007, 12:43 AM   #8
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Can you post the output of mount command.

Also check the /etc/auto* files to know what volumes are automounted from the same system.

A look at /etc/fstab should also help.
 
  


Reply

Tags
bit, mount, partition, sticky, write


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
About Sticky bit... masudur_iiu General 4 09-13-2006 10:23 AM
sgid and sticky bit levis_inferno Linux - Networking 5 06-01-2006 01:00 AM
Sticky Bit tarballed Linux - General 4 07-03-2002 03:54 PM
Sticky bit question...need help rootlinux Linux - General 1 01-26-2002 05:12 PM
sticky bit motiram Linux - General 1 08-01-2001 12:34 PM


All times are GMT -5. The time now is 07:31 AM.

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