Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: NAS Mount to UBUNTU - Read Only

  1. #1
    Join Date
    Sep 2024
    Beans
    12

    Question NAS Mount to UBUNTU - Read Only

    So I got the mount to work, but it is the RedHat syntax and there is no rights in the syntax... so I know that has something to do with it.

    the problem is I cannot mount without SUDO or at root, and even at those levels I cannot change the mod or the owner or group. I have checked the NAS and the credentials I used to mount are full admin. Now I was able to change these settings in the past, yet that was a different mount syntax... but regardless. There is still something wrong with this newest version of UBUNTU since I NEVER had this issue in the past... just after that upgrade and patches... Now I am up that creek without one of those paddles... So let's just throw out everything we know about Linux and flip a coin to see how to fix this... OR Ubuntu can relook at their upgrade and fix the quirks that are obviously there.

    I just saying...

  2. #2
    Join Date
    Mar 2010
    Location
    Been there, meh.
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: NAS Mount to UBUNTU - Read Only

    What is "RedHat syntax"? Never heard that term in 30 yrs of dealing with NAS devices.
    Also, which protocol is your client and server using to connect to the NAS.

    What is the file system on the NAS? NTFS doesn't support chmod/chgrp/chown commands, regardless of the file sharing protocol used.

    NFS with ext4 (or other native Linux file system) will support chown, chmod, chgrp commands. However, chown is a root command and root access from the client isn't allowed by default. The owner needs to be changed directly on the NAS server - or you could allow any remote root id to have full control, but that's a huge, huge, huge, security issue with NFS. Best not to do it, but there is an option in the NFS "exports" file to allow it.
    Last edited by TheFu; September 28th, 2024 at 11:49 PM. Reason: s/fril/from/

  3. #3
    Join Date
    Dec 2009
    Beans
    6,809

    Re: NAS Mount to UBUNTU - Read Only

    So I got the mount to work, but it is the RedHat syntax and there is no rights in the syntax... so I know that has something to do with it.
    Always interested in how others do this sort of thing so I looked at the Red Hat documentation and found this:
    9.2.2. Manually Mounting an SMB Share
    To manually mount an SMB share, use the mount utility with the -t cifs parameter:

    mount -t cifs -o username=user_name //server_name/share_name /mnt/
    Password for user_name@//server_name/share_name: ********
    Yep, that ain't gonna work. Well, ... it will work but unless you are root you only have read access to the mounted share.

    You are going to have to at least take possession of the mount:
    mount -t cifs -o username=user_name,uid=srutx47 //server_name/share_name /mnt/
    I would also choose a subdirectory ot /mnt instead of /mnt itself but that's just me.
    Last edited by Morbius1; September 28th, 2024 at 05:54 PM.

  4. #4
    Join Date
    Sep 2024
    Beans
    12

    Re: NAS Mount to UBUNTU - Read Only

    As i mentioned in my last post (a separate one) The NAS I have (Buffalo Drive) does not support NFS. I understand your passion but NFS is not something every device supports, and I am a fan of NFS. Also RedHat Syntax means it works for my RedHat install. Also, in the past on this very laptop before the 20.04 update, I was able to chmod chgrp and chown for this very share. So, again either I am missing some syntax or some variable in no mount statement, OR the update and patches screwed up far more items that I first found.

    The command I entered that mounted the drive:
    Code:
    sudo mount -t cifs -o user=username,vers=1.0 //192.168.1.195/wilshare /mnt/NetShare
    Mount should not have changed with the update, but I cannot seems to get this mount to function as it once did. I need the RW function so I will continue to research unless someone may have the solution.

  5. #5
    Join Date
    Sep 2024
    Beans
    12

    Re: NAS Mount to UBUNTU - Read Only

    I will check into this and try it out. Thanks!

  6. #6
    Join Date
    Sep 2024
    Beans
    12

    Re: NAS Mount to UBUNTU - Read Only

    I need to add a line in FSTAB from the error:

    Code:
    mount.cifs: permission denied: no match for /mnt/NetShare found in /etc/fstab
    I will look into the proper syntax for that. I will post the results.

  7. #7
    Join Date
    Sep 2024
    Beans
    12

    Re: NAS Mount to UBUNTU - Read Only

    Well I added the FSTAB entry - now I get permission denied. lovely!

    Code:
    [179415.677576] r8169 0000:01:00.0:    [ 0] RxErr                  (First)[179416.536078] CIFS: Attempting to mount //192.168.1.195/wilshare
    [179416.542071] CIFS: VFS: cifs_mount failed w/return code = -22
    [179418.220505] pcieport 0000:00:1c.0: AER: Multiple Correctable error message received from 0000:01:00.0

  8. #8
    Join Date
    Sep 2024
    Beans
    12

    Re: NAS Mount to UBUNTU - Read Only

    fix the error but the mount is still read only.

  9. #9
    Join Date
    Dec 2009
    Beans
    6,809

    Re: NAS Mount to UBUNTU - Read Only

    Install nmap:
    Code:
    sudo apt install nmap
    Then run this command to find out what "dialects" of smb the NAS is running and post the results:
    Code:
    nmap -Pn --script smb-protocols 192.168.1.195

  10. #10
    Join Date
    Mar 2007
    Location
    Promiseland
    Beans
    1,696
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: NAS Mount to UBUNTU - Read Only

    Does your Buffalo NAS happen to have DD-WRT NXT preinstalled?
    Cheers,


    The Linux Command Line at https://linuxcommand.org/

Page 1 of 2 12 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
  •