FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Server Development

 
 
LinkBack Thread Tools
 
Old 03-24-2012, 01:58 PM
Florian Lengyel
 
Default Problem fixed! was: Permission denied (NFS/fstab?)

What did you do to fix it?

On Sat, Mar 24, 2012 at 9:35 AM, Karl-Arne Gjersøyen <karlarneg@gmail.com> wrote:


Problem fixed. I was forced to do some editing in /etc/exports to fix

the problem.

Now it is working!



Karl





---------- Videresendt e-post ----------

Fra: Karl-Arne Gjersøyen <karlarneg@gmail.com>

Dato: 10:30 24. mars 2012

Emne: Permission denied (NFS/fstab?)

Til: Ubuntu Server list <ubuntu-server@lists.ubuntu.com>





Hello again.

I think I miss something in /etc/fstab because when I mount the

exported system and mount it on my mac, I got this error below when

trying to create on the mounted disk



macbook:~ karl$ sudo mount 192.168.1.35:/export/users /Users/karl/Ubuntu

macbook:~ karl$ cd Ubuntu/

macbook:Ubuntu karl$ ls

testing

macbook:Ubuntu karl$ mkdir test

mkdir: test: Permission denied

macbook:Ubuntu karl$



Here is my /etc/fstab file:

.........................................

karl@ubuntu:~$ cat /etc/fstab

# /etc/fstab: static file system information.

#

# Use 'blkid' to print the universally unique identifier for a

# device; this may be used with UUID= as a more robust way to name devices

# that works even if disks are added and removed. See fstab(5).

#

# <file system> <mount point> * <type> *<options> * * * <dump> *<pass>

proc * * * * * */proc * * * * * proc * *nodev,noexec,nosuid 0 * * * 0

/dev/mapper/ubuntu-root / * * * * * * * ext4 * *errors=remount-ro 0 * * * 1

# /boot was on /dev/sda1 during installation

UUID=5539e26b-a26b-492c-abe8-e4c19b28eaaa /boot * * * * * ext2

defaults * * * *0 * * * 2

/dev/mapper/ubuntu-swap_1 none * * * * * *swap * *sw * * * * * * *0 * * * 0



/home/BackUP /export/users none bind *0 0



karl@ubuntu:~$





Thanks for all help!



Karl

--

Hjemmeside: http://www.karl-arne.name/





--

Hjemmeside: http://www.karl-arne.name/



--

ubuntu-server mailing list

ubuntu-server@lists.ubuntu.com

https://lists.ubuntu.com/mailman/listinfo/ubuntu-server

More info: https://wiki.ubuntu.com/ServerTeam



--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 03-24-2012, 03:30 PM
Karl-Arne Gjersøyen
 
Default Problem fixed! was: Permission denied (NFS/fstab?)

Den 15:58 24. mars 2012 skrev Florian Lengyel
<florian.lengyel@gmail.com> følgende:
> What did you do to fix it?

karl@ubuntu:~$ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check)
hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)

# this two lines below was the old one that not work out.
# It gave only ro permittion on Mac OS X 10.6.8
#/export 192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async)
#/export/users 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,async)

#This two lines below work.
# I removed fsid=0 and added all_squash, anonuid=1004,anongid=1004
# 10004 is taken for the user from /etc/passwd for uid:gid
# In this way it is only to do: sudo mount
ip_of_nfs_server:/export/users /Users/karl/Ubuntu on Mac client
computer
/export 192.168.1.35/24(rw,sync,no_subtree_check,all_squash,anonuid=100 4,anongid=1004,insecure)
/export/users 192.168.1.35/24(rw,nohide,sync,no_subtree_check,all_squash,anon uid=1004,anongid=1004,insecure)
karl@ubuntu:~$

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 03-24-2012, 05:40 PM
Florian Lengyel
 
Default Problem fixed! was: Permission denied (NFS/fstab?)

I see -- this method would not work for (auto)mounting users in general though since you have to enter the UID:GID entries in /etc/fstab. It would be better if this information could be retrieved at login.


Apparently automounting linux users on Macs seems to require importing some of the apple schema into an LDAP--this is undesirable as Apple has been known to change its schema (I've done this) over time and because it adds variable complexity to the straightforward POSIX schema that works for Linux users.



This was my reason for asking...
FL

On Sat, Mar 24, 2012 at 12:30 PM, Karl-Arne Gjersøyen <karlarneg@gmail.com>*


#This two lines below work.

# I removed fsid=0 and added all_squash, anonuid=1004,anongid=1004

# 10004 is taken for the user from /etc/passwd for uid:gid

# In this way it is only to do: sudo mount

ip_of_nfs_server:/export/users /Users/karl/Ubuntu on Mac client

computer

/export 192.168.1.35/24(rw,sync,no_subtree_check,all_squash,anonuid=100 4,anongid=1004,insecure)

/export/users 192.168.1.35/24(rw,nohide,sync,no_subtree_check,all_squash,anon uid=1004,anongid=1004,insecure)



karl@ubuntu:~$



--

ubuntu-server mailing list

ubuntu-server@lists.ubuntu.com

https://lists.ubuntu.com/mailman/listinfo/ubuntu-server

More info: https://wiki.ubuntu.com/ServerTeam



--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 

Thread Tools




All times are GMT. The time now is 02:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org