[SOLVED] Mount NAS with writing permissions

I've got a MyBook World Edition NAS which i only use from time to time - so i decided to mount it manually.
To mount it convenient i've added the following to my /etc/fstab so i can mount it with "sudo mount /mnt/mybook":
//IPC/Public /mnt/mybook cifs users,noauto,noatime,ip=192.168.1.200,username=**********,password=**********,iocharset=utf8,file_mode=0777,dir_mode=0777
Mounting works well, but i don't get writing permissions.
Shouldn't "file_mode/dir_mode" do the trick?
Last edited by Flylow (2010-08-14 08:59:30)

Flylow wrote:
Thanks for the tip with the external .creds file :-)
1) Don't get the point - need some further explanation
2) Owner is root, i can change it to myself, but as soon the NAS gets mounted the owner changes to root
Does this maybe has to do with "sudo mount ..." Shouldn't I be able to mount without sudo since i added users to fstab?
Ah...
1) means is the share exported as read write execute from the NAS?
2) Since the owner is root:root that may explain your problem.  What are the permissions on the share once mounted?  I'm guessing 744 or 644?
Instead of the file_mode and dir_mode, try a uid,gid to the mount line and match them up to your user.

Similar Messages

  • [solved] findutils - problem with file permissions

    Hey,
    I tried running makepkg -c for an updated PKGBUILD of a package I maintain in the AUR (gretl), and it seemed fine but then hit:
    ==> Tidying install...
    -> Purging other files...
    -> Compressing man and info pages...
    -> Stripping debugging symbols from binaries and libraries...
    -> Removing libtool .la files...
    -> Removing empty directories...
    find: invalid predicate `-delete'
    I'd had some other strange errors with find over the past few weeks or so (my last -Syu was after this month's catalyst driver came out with support for the current kernel) but had shrugged them off. This error made me decide to try reinstalling findutils, and it gave the error:
    error: cannot remove file 'usr/bin/find': Operation not permitted
    a bit stupidly, I tried pacman -Rd then -S findutils, and now I get
    error: failed to commit transaction (conflicting files)
    findutils: /usr/bin/find exists in filesystem
    Errors occurred, no packages were upgraded.
    missing dependency for ca-certificates : findutils
    missing dependency for initscripts : findutils
    missing dependency for mkinitcpio : findutils
    missing dependency for texinfo : findutils
    ls -als /usr/bin | grep find     gives:
    12 -rwxr-xr-x 1 root root 10636 Mar 25 16:24 deepfind
    64 -rwxr-xr-x 1 root root 59200 May 9 01:58 efinder
    64 -rwxr-xr-x 1 500 500 59536 Jun 16 14:49 find
    and rm, mv, chmod, chown etc on /usr/bin/find as root, and from livecd, all also come back with "Operation not permitted".
    find seems to work fine for a few simple uses I've just tried.. but the last time I ran makepkg -c without the error was before the last system upgrade, so I'm guessing find didn't upgrade properly then due to whatever is wrong with the permissions, leading to the other errors.
    Anyway, I guess the question is, can I do anything to get rid of /usr/bin/find and reinstall findutils? don't mind so much about missing dependencies as I tend not to upgrade that often, but find not doing what it should is a bit of a pain.
    Last edited by manehi (2009-08-30 08:52:20)

    mm I tried all that, and no luck. though trying adduser 500 did give me a helpful reminder that usernames can't start with numbers...
    anyway, it's not a huge deal atm, and I can always clean reinstall the / partition if things really break. Thanks all the same.
    PS:
    huh, just had a thought - I remember how I used to get annoyed how mounting partitions using ext2ifs in windows didn't respect permissions properly. and now I almost wish I had a windows partition / that this wasn't a laptop hard drive...
    Last edited by manehi (2009-08-30 00:31:13)

  • [Almost Solved] Mount NAS for use with photorec

    Hi there,
    I deleted some files on my NAS (WD MyBook World Edition) and want to give photorec a try - nothing serious but would be cool if it works.
    Now the software should find the drive where my problem lies:
    Normaly I mount the NAS via sudo mount /mnt/mybook/
    fstab entry:
    //IPC/Public /mnt/mybook cifs users,noauto,noatime,ip=192.168.1.200,iocharset=utf8,credentials=/root/.creds,uid=1000 0 0
    How can I mount the NAS for temporary use with photorec dev/....
    Regards
    Last edited by Flylow (2011-01-07 12:45:49)

    Just wondering, if there is a faster way than photorec for my purpose? I've bought an USB enclosure for the drive now - Because it's an nearly full 2 TB drive the recovery takes ages (about 120 hours).
    There are only 2 GB of free space on the drive and the deleted pictres are most likely in thes 2 gigs. Is there a programm (something for Windows is fine too) which let me recover only undeleted files and doesn't do a full recovery (have already limited photorec to jpg only)?
    FS is XFS.
    Regards
    Last edited by Flylow (2011-01-07 12:44:58)

  • [Solved] mount NAS plugged in network port of computer

    Hello!
    Is there a possibility to do that? If yes, how?
    I have a big load of data to copy on my NAS and I have only a 100mbit switch.
    The USB port is made for attaching another drive to the NAS and not for plug in the computer.
    Thanks in advance.
    Last edited by Maximalminimalist (2010-02-25 19:35:56)

    I just received an answer here.
    http://bbs.archlinux.org/viewtopic.php?id=91896

  • Mounted NAS permissions

    Hello,
    I have a mac pro running lion server. At the moment we have a NAS drive that is mounted through the admin. I want all users on the server to be able to access the mounted NAS drive via the mounted path. At the moment however, other users cannot view the mounted directory and any attempt to access it throws a permissions error. I have tried changing the permission to read-write for all users but this does not appear to affect the mounted directory permissions at all, it still gives:
    drwx------    1 admin  staff      16384
    Does anyone know if there is a way to mount the drive and provide access to all users through the same path? I am using mount_smbfs by the way.
    cheers,

    Update- I now try to mount the drive with > mount_smbfs -f 0777 -d 0777 //user:password@location/Public /Shared and while it changes 'Shared' dircetory to rwx for all, then it does not allow access from another users home directory.

  • Writing permissions for software in combination with ftp?

    It seems that i have various writing permisions problems, for example:
    1) I use Cyberduck FTP in combination with textwrangler to edit online files, in leopard i can edit a file, but it does not write it correct to ftp location.
    2) In Aptana studio I got the same problem while using ftp acces, it seems that it does write to temp folder local, but it just can't update online.
    3) Repair permissions just failes and gives errors
    I have 2 here (silver and white intel) both with leopard, both with same troubles.

    ..." I get a message saying I do not have permission"...
    That message really annoys me because it is an example of a poorly worded (misleading) dialogue - the problem has nothing to do with unix "permissions". It just means the app isn't in the list of applications approved by the "admin" for use in the managed account.
    If you are the developer, make sure you have given your app a unique 'CFBundleIdentifier' or else it likely won't be possible to add the programme to 'mcx_settings', meaning it won't work in a "managed" account.
    http://docs.info.apple.com/article.html?artnum=300842
    http://developer.apple.com/qa/qa2004/qa1373.html
    If the app isn't a "package", give it a unique "creator" code there is probably some procedure somewhere about figuring out what is allowed or what has already been taken, but I'm not a developer so I can't give you any more details...

  • [SOLVED]Error mounting: mount exited with exit code 16

    hi guys, i have a dual OS.  today after i force  shutdown my computer,  i can't mount one of the ntfs 。it shows the follow errors:
    Error mounting: mount exited with exit code 16: Mount is denied because the NTFS volume is already exclusively opened.
    The volume may be already mounted, or another software may use it which
    could be identified for example by the help of the 'fuser' command.
    any idea?
    Last edited by wntyygtwxf (2011-12-01 11:09:27)

    i resolve it by myself.
    first, i mount it at another place, just like  sudo mount   /dev/sda?  ~/home/down
    then umount it.
    now it work well. but i don't know why this worked.

  • Error -36 while trying to move files on SMB mounted NAS

    Hey,
    I have been experiencing an error -36 while trying to move files around on my NAS.
    I have the feeling it has something to do with insufficient privileges that are being acquired.
    When mounting in windows explorer no problems arise.
    When using the mac mounted disk in Parallels same problem.
    Mounting disk in mac as following:
    smb://login:password@ip-address/NAS-mount
    or
    smb://ip-address/NAS-mount (after which login details are prompted)
    Any help or suggestions are welcome,
    Jan

    Hey,
    I tried CIFS but that is giving me the same error -36.
    I think it must have something to do with finder permissions as windows explorer is handeling it just fine.
    Any more suggestions?
    Tried:
    cifs://login:password@ipaddress/share
    cifs://ipaddress/share

  • Networkdri​ver use to mount Nas or pc share folder plus vpn you can see your file any where

    http://www.box.com/s/7jram4o04175189xbpbe
    here is network driver after install it you can mount nas or your pc share folder, combine with vpn you can see your file any where it is the good way to replace FTPit.
    http://www.tinhte.vn/attachment.php?attachmentid=4​42957&stc=1&thumb=1&d=1321272433
    http://forums.webosnation.com/nelsun-apps/303257-n​etwork-drives-enyo-network-drive-mapper.html
    Post relates to: HP TouchPad (WiFi)

    I was wondering whether it had anything to do with the network I was using. The router I am using can't access the internet and I am using the basic 192.168.1.X setup with 255.255.255.0 as the mask.
    My computer has an ip of 192.168.1.2 and the xbox has an ip of 192.168.1.3. However, I am still unable to ping the xbox or even see it show up in the network. I did notice that whenever I am using another router that is connected to the internet, I can see other windows based computers in the network tab in thunar under "windows network"
    Also, I do have a username and password associated with the samba setup.. so I assume maybe that has something do with it. I checked the permissions of the share folder and it was root:root with read and write permissions. I know samba is working fairly well.. but for whatever reason I can't get the xbox to connect even while it is on the same local network.

  • Problem with file permissions

    Hello all,
    I am making a simple HttpServlet, which takes input
    from html page and saves in to a file, but I'm having a
    bit of a problem with file permissions.
    I'm getting the following exception
    java.security.AccessControlException: access denied (java.io.FilePermission ./data/result read)
         java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         java.security.AccessController.checkPermission(AccessController.java:427)
         java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         java.lang.SecurityManager.checkRead(SecurityManager.java:871)
         java.io.File.exists(File.java:700)
         SyksyHTTPServlet.doPost(SyksyHTTPServlet.java:31)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)The exception seems to occur when I'm trying to check whether the file already
    exists or not.
    The data directory has all permissions (read, write and execute) set for all users,
    and I have made an empty file called result inside the data directory for testing.
    This file has read and write permissions enabled for all users.
    Here's my code
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.Enumeration;
    import java.util.List;
    import java.util.ArrayList;
    public class SyksyHTTPServlet extends HttpServlet
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              int totalCount = 0;
              List list;
              String song = request.getParameter("song");
              PrintWriter out = response.getWriter();
              File file = new File("./data/result");
              if(file.exists())  // this is line 31, which seems to cause the exception
                   list = readFile(file);
              else
                   file.createNewFile();
                   list = new ArrayList();
              list.add(song);
              writeFile(file, list);
              for(int i = 0 ; i < list.size() ; i++)
                   out.println(list.get(i));
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              doPost(request, response);
         private List readFile(File file)
              List list = null;
              try
                   FileInputStream fis = new FileInputStream(file);
                   ObjectInputStream ois = new ObjectInputStream(fis);
                   list = (ArrayList)ois.readObject();
                   ois.close();
              catch(Exception e)
                   e.printStackTrace();
              return list;
         private void writeFile(File file, List list)
              try
                   FileOutputStream fos = new FileOutputStream(file);
                   ObjectOutputStream oos = new ObjectOutputStream(fos);
                   oos.writeObject(list);
                   oos.flush();
                   oos.close();
              catch(Exception e)
                   e.printStackTrace();
    }I'm using Tomcat 5.5 on Ubuntu Linux, if that has anything to do with this.
    I'll appreciate all help.
    kari-matti

    Hello again.
    I'm still having problems with this. I made
    a simple servlet that reads from and writes
    to text file. The reading part work fine on my
    computer, but the writing doesn't, not even
    an exception is thrown if the file exists that
    I'm trying to write to. If I try to create a new
    file I'll get an exception about file permissions.
    I also asked a friend of mine to try this same
    servlet on his windows computer and it works
    as it should.
    Here's the code
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class ReadServlet extends HttpServlet
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              String s = "";
              PrintWriter out = response.getWriter();
              String docroot = getServletContext().getRealPath( "/" );
              out.println("docroot: "+docroot);
              File file = new File(docroot+"test.txt");
              if(file.exists())
                   s = readFile(file);
                   out.println(s);
              else
                   out.println("file not found");
                   //file.createNewFile();                    // causes exception
                   //out.println("new file created.");
              writeFile(file, "written by servlet");
              out.println("Now look in the file "+file.getPath());
              out.println("and see if it contains text 'written by servlet'");
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              doPost(request, response);
         private String readFile(File file)
              FileInputStream fis = null;
              BufferedInputStream bis = null;
              DataInputStream dis = null;
              String s = "";
              try
                   fis = new FileInputStream(file);
                   bis = new BufferedInputStream(fis);
                   dis = new DataInputStream(bis);
                   s = dis.readLine();
                   fis.close();
                   bis.close();
                   dis.close();
              catch(Exception e)
                   e.printStackTrace();
              return s;
         private void writeFile(File file, String s)
              FileOutputStream fos = null;
              BufferedOutputStream bos = null;
              DataOutputStream dos = null;
              try
                   fos = new FileOutputStream(file);
                   bos = new BufferedOutputStream(fos);
                   dos = new DataOutputStream(bos);
                   dos.writeChars(s);
                   fos.flush();
                   bos.flush();
                   dos.flush();
                   fos.close();
                   bos.close();
                   dos.close();
              catch(Exception e)
                   e.printStackTrace();
    }And if someone wants to test this servlet I can
    give a war package.
    Any advices?
    kari-matti

  • External drives won't mount after running repair permissions

    None of my external drives will mount after running disk permissions. Drives work fine on my mbpro.
    None of the external drives show up in disk utilities...
    I've try shutting down and unplugging computer. even mini zip drives won't mount.
    I'm running 10.4.11
    PPC G5 2.3Ghz
    Thanks for any help..

    Repairing Permission only deals with installer receipts and system components. Not with mounting or accessing hard drives.
    Have your run Apple DU First Aid? Disk Warrior? Only use latest version for your OS.
    Are you trying to clone your system to external and then repairing permissions? trying to boot from them?
    If cloning, make sure the "Ignore Ownership" flag is unchecked before cloning (but do repair permissions on external drives you intend to boot from, such as a Firewire drive).
    What type of cases and interface are these?

  • Indesign wont start due to lack of writing permissions to the settings file!

    My Indesign CC2014 refuses to start.
    I get an errorwindow saying "Indesign couldn't start because you lack writeing permissons to the Indesign settings file. Correct the problem and restart Indesign."
    Where is that file located?
    I have no problem with the other CC-programs, they run just fine!
    Anybody encountered this problem?

    See Replace Your Preferences  for folder locations and Cant launch new inDesign CC | Adobe Community  for directions for setting the permissions on Mac. Procedure is similar on Windows.

  • [Solved] Mounting a ntfs usb drive in kdemod

    I have an external usb drive that automounts in gnome, with write permissions. In kdemod it would not mount, and gave the error: "PermissionDeniedByPolicy mount-removable-extra-options no". I fixed this using this workaround... http://wiki.archlinux.org/index.php/HAL … utomounter. The drive now mounts, but i don't have write permission. Is there a way to get it to automount in kdemod? Would i have to change /etc/fstab for every external usb drive?
    Last edited by benerivo (2009-03-22 10:49:32)

    I'm not sure what i'm using to mount it. I have ntfs-3g installed and working for an internal drive. I'm hoping for a 'plug and wrirte' solution, as happens for me in gnome. Currently in kde, with the fix i mentioned, it mounts but only with read permissions. I'm hoping to avioid an /etc/fstab solution as i may need to use this computer in an environment where any ntfs usb external drive can be plugged in and written to.
    Last edited by benerivo (2009-03-22 02:04:47)

  • I cannot access NAS with Mac OS Yosemite

    I 've red other guy's problems in threads like that https://forums.lenovo.com/t5/Iomega-Network-Storage/Cannot-connect-from-OSX-Mavericks/td-p/1298155/p... but i haven't found any working solution.
    I just cannot access my NAS from Mac computer with OS X Yosemite v. 10.10.1 installed.
    The Lenovo software I've installed looks crippled. It doesn't even ask me for credentials, just displays a message
    It stands for "There's a problem accessing server "ix2.local." There are no such share on this server. Check share's name and try again. I wrote above I cannot check share's name, because LAM doesn't allow me to enter any credentials. I cannot access any configurations of this program, because he "Preverences" tab in main menu is inactive. At the same time NAS works wee with a Win7 PC plugget to the same LAN.
    I have Lenovo Access Manager 1.4.4.14439 installed
    I have ix2-dl NAS with firmvare v. 4.1.104.31360
    Can anyone help me?

    Hello mordor_warior
    LenovoEMC Storage Manager uses the current Windows/Apple OSX user account to connect with the NAS.  If there is a space in the username or does not meet the username requirements for the NAS,  it can cause this issue due to a permission conflict.
    I recommend trying to unistall LSM for now, then try manually mounting the shares via AFP or SMB/CIFS in finder using a username created on the NAS web interface.  
    If you are still unable to access the shares, you should double check that the computer is on the same local network ip range and subnet as the NAS you are having issues accessing.
    You could also try allowing "everyone" permission in the web interface, this would allow LSM to access the shares on the NAS even if the OSX username does not meet the NAS username requirements.
    LenovoEMC Contact Information is region specific. Please select the correct link then access the Contact Us at the top right:
    US and Canada: https://lenovo-na-en.custhelp.com/
    Latin America and Mexico: https://lenovo-la-es.custhelp.com/
    EU: https://lenovo-eu-en.custhelp.com/
    India/Asia Pacific: https://lenovo-ap-en.custhelp.com/
    http://support.lenovoemc.com/

  • I have a problem how can I solve it I want give permissions to groupA to edit the people picker and I want to restrict groupB to edit the people picker what is the solution boss.. in InfoPath form is it possible..

     i have  a problem how can I solve it I want give permissions to groupA to edit the people picker and I want to restrict groupB to edit the people picker what is the solution boss.. in InfoPath form is it possible..

    Hi,
    To hide/disable controls based on user group in an InfoPath form, a solution is that we can call User Profile Service to check the group of current user, then hide/disable
    specific controls by setting some rules in form.
    Here is a demo with steps in details would be helpful to you:
    http://blog.symprogress.com/2011/05/infopath-list-form-hidedisable-fields-based-on-sharepoint-group-membership/
    More information about checking if a user is a member in a SharePoint group within web InfoPath 2010 forms:
    http://www.hishamqaddomi.ca/spg/index.php/sharepoint-2010/infopath-2010/65-checking-if-a-user-is-a-member-in-a-sharepoint-group-within-web-infopath-2010-forms
    Thanks 
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for