LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   removing sticky bit from mounted partition (https://www.linuxquestions.org/questions/linux-general-1/removing-sticky-bit-from-mounted-partition-540444/)

deesto 03-25-2007 09:32 AM

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?

zulfilee 03-26-2007 05:47 AM

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

$ showmount NFS_IP

See the permission here

jschiwal 03-26-2007 06:10 AM

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.

deesto 03-26-2007 08:09 PM

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.

Emerson 03-26-2007 09:06 PM

The volume may be exported read-only. man exports

zulfilee 03-27-2007 05:31 AM

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.

deesto 04-16-2007 08:20 PM

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.

zulfilee 04-17-2007 12:43 AM

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.


All times are GMT -5. The time now is 05:37 PM.