Page 41 of 53 FirstFirst ... 31394041424351 ... LastLast
Results 401 to 410 of 521

Thread: HOWTO: NFS Server/Client

  1. #401
    Join Date
    Dec 2005
    Location
    birmingham, england
    Beans
    255
    Distro
    Ubuntu Karmic Koala (testing)

    Re: HOWTO: NFS Server/Client

    Stopped the firewall via Firestarter,tried to run the mount command from the client and get
    Code:
    mount.nfs: access denied by server while mounting alpha:/media/nfstest
    Edit
    Even stranger, tried to mount /home/chris and it worked!! Better get fstab sorted and see if I can get the share mounted @ boot!
    Last edited by lemmy999; January 16th, 2010 at 03:12 PM. Reason: Update

  2. #402
    Join Date
    Dec 2005
    Location
    birmingham, england
    Beans
    255
    Distro
    Ubuntu Karmic Koala (testing)

    Re: HOWTO: NFS Server/Client

    My fstab is as follows
    Code:
    UUID=d9156e9f-ed1b-44e1-b307-2557e0211b98 /home           ext4    relatime        0       2
    # swap was on /dev/sdb5 during installation
    UUID=77ca82f4-c9a9-40d3-aebd-a82093d32413 none            swap    sw              0       0
    alpha:/home/chris /home/chris/share  nfs rsize=8192,wsize=8192,timeo=14,intr,noauto
    Any idea why its not mounting on boot?

    I can still mount manually!! Just got to work out how to configure the firewall now

  3. #403
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: NFS Server/Client

    Quote Originally Posted by lemmy999 View Post
    My fstab is as follows
    Code:
    UUID=d9156e9f-ed1b-44e1-b307-2557e0211b98 /home           ext4    relatime        0       2
    # swap was on /dev/sdb5 during installation
    UUID=77ca82f4-c9a9-40d3-aebd-a82093d32413 none            swap    sw              0       0
    alpha:/home/chris /home/chris/share  nfs rsize=8192,wsize=8192,timeo=14,intr,noauto
    Any idea why its not mounting on boot?

    I can still mount manually!! Just got to work out how to configure the firewall now
    The noauto option prevents the share from being mounted at boot. Remove it, and it will mount on boot.

    Are you even positive you need a firewall? If you're on a LAN, that usually means you have a router between The Internet and you. Routers usually have firewalls on them. So, you need to consider if you think it's necessary to firewall traffic on your local LAN. IOW ... Do you really need one firewall for The Internet, and another for your LAN, and/or ... do you have a specific reason to be afraid of traffic on your own LAN?
    Last edited by dmizer; January 16th, 2010 at 04:05 PM.

  4. #404
    Join Date
    Dec 2005
    Location
    birmingham, england
    Beans
    255
    Distro
    Ubuntu Karmic Koala (testing)

    Re: HOWTO: NFS Server/Client

    @dmizer

    I'll change that entry in fstab and see what happens. As regards the firewall thing I suspect you are right. I have a router which will perform firewalling duties so using iptables as well is probably overkill.

    @dmizer
    Your suggestion worked well. Many thanks to you and JCV for all your help.
    Last edited by lemmy999; January 16th, 2010 at 05:15 PM.

  5. #405
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: HOWTO: NFS Server/Client

    No longer participating......

  6. #406
    Join Date
    Aug 2007
    Location
    Red Deer, AB-Canada
    Beans
    242
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: NFS Server/Client

    ...any help for me?

    I was able to mount the share on the client, but now I am having problems with the permissions.
    The only way to gain rw access to the folders is if I set the "others" permission as rw.

    How do I do to make the user@client part of the group the folders at the server belong to?

    Thanks in advance.
    Last edited by ozzyprv; January 17th, 2010 at 03:12 AM.
    Ozzy - User: Linux 452359 | Ubuntu 16872 |

  7. #407
    Join Date
    Jul 2009
    Beans
    571
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: NFS Server/Client

    @ozzyprv - in my case, I made my clients all part of 1 group say, office, then I made their accounts in the server. I also logged-in to their desktops so it will say, "added user tom", otherwise they can't access the shares, I don't know if it's true in Karmic. Are the clients fresh install desktops? Because, I had the same problem before so I forced all users in the server to have unique ID's instead of their defaults. 1010 - 1020 are unique, then manually I also changed their workstation user ids from the default 1000, to 1010 - 1020 using this command.

    # id tom
    # usermod -u 1010 tom
    # id tom

    That's just for simplicity sake. See if that works for you... So my shares now are

    sudo chmod -R 1770 folder

    So even if they have rw access, they can't delete it with the 1 switch instead of 0770.
    It's OK, everything we know will become obsolete at some time.

  8. #408
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: HOWTO: NFS Server/Client

    Also will depend on how much "security" / "file protection" you are after. I can trust everyone on my home LAN, so tend to chmod -R 777 all files and directories (outside of home), which makes things alot easier. Anything on my nfs shares is backed up anyway so if something gets trashed I just put it back.

    But AlexDG is right, sorts out your users on group permissions and you should be good to go
    No longer participating......

  9. #409
    Join Date
    Aug 2007
    Location
    Red Deer, AB-Canada
    Beans
    242
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: NFS Server/Client

    BACKGROUND:

    This is my /etc/exports:
    Code:
    /media/Disk01/mysharedfolder 192.168.1.100 (rw,root_squash,sync)
    Client connects when logged on as "mark", UID:1000. "mark" belongs to some 4 or 5 groups. Among those groups, "mark" is part of "sshare", GID: 1234.

    At server, /media/Disk01/mysharedfolder is owned by "mark_server", UID: 1000. And it is part of the group "sshare". This is how a 'ls -al' @ /media/Disk01/ looks like:
    Code:
    drwxrwxrwx 21 mark_server sshare  4096 2010-01-13 19:00
    At server, "sshare" GID: 1234.
    At server, "mark" UID: 1004.


    ISSUE:


    Mounting goes okay. I can read everything that is @ /media/Disk01/mysharedfolder from client. But I cannot write. I cannot delete files or move files into the folder.
    Last edited by ozzyprv; January 18th, 2010 at 03:55 AM. Reason: added mark's UID at server
    Ozzy - User: Linux 452359 | Ubuntu 16872 |

  10. #410
    Join Date
    Jul 2009
    Beans
    571
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: NFS Server/Client

    In post #406:

    The only way to gain rw access to the folders is if I set the "others" permission as rw.
    And you have...

    drwxrwxrwx 21 mark_server sshare 4096 2010-01-13 19:00
    Does this mean client "mark" can already write to the folder above or do you still have issues?

    If you still can't I don't know what to do. But try to make a "new shared folder" and a "new test account" and make them interact together to see what happens. A similar problem happened to me before, did you change their ID's via the GUI or the terminal? I fixed my problem before by using the terminal as I read here: http://www.cyberciti.biz/faq/howto-c...-user-name-id/ But, I may be missing the problem completely, if that's the case I hope others can help you.
    It's OK, everything we know will become obsolete at some time.

Page 41 of 53 FirstFirst ... 31394041424351 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •