Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I am very new to Linux. I have an iomega NAS that I use for storing my media and documents that I share between multiple PC's. I have added ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    10

    Question Fedora 11 How to map cifs shares from my NAS at bootup

    Hello,

    I am very new to Linux. I have an iomega NAS that I use for storing my media and documents that I share between multiple PC's. I have added a Fedora 11 box to the mix.

    I have no authentication architecture on my network. On the NAS, my shared folders are configured for "Everyone" access.

    I would like to mount these shares (share, photos, videos, music) automatically for all users in Fedora. I added the following information to the fstab file for these shares:

    //x.x.x.x/share /mnt/localdir cifs _netdev,user 0 0

    (I used _netdev because I had a prior problem where fedora would lock up trying to mount these drives before the network was up)

    The shares do not mount on boot. I can mount them from terminal but must do so as root. I am prompted for the root password for each share I mount (5 times). I would rather not do this.

    I tried adding /bin/mount and the STORAGE alias rights to myself in sudoers but I am still told that "only root can do that."

    Can somebody please help me figure out how to configure it so that either during boot, or after login via script, my shares are mounted without having to enter my root pw five times?

    Thanks in advance,

    elmulletlargo

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    use the options username= and password= in the fstab file, the user you are using to access may or may not have a password, but you need to keep password= and leave it blank, like this

    Code:
    //host/share /mnt/host/share cifs username=Guest,password= 0 0

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    10

    Thumbs up Thanks

    Worked like a charm. Thanks!

    elmulletlargo

Posting Permissions

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