chris_netsmart Posted September 10, 2022 Share Posted September 10, 2022 I have been having issues trying to create a mount to my unraid server. I have check the permissions, and at the moment there are set to public I then went to my linix VM machine and type in the following commands Quote istc4adm@torrent:~$ mount -t cifs -o rw,vers=3.0,credentials=/root/.credentials //192.168.1.9/Users /media/share mount.cifs: permission denied: no match for /media/share found in /etc/fstab istc4adm@torrent:~$ ^C istc4adm@torrent:~$ mount -t cifs //192.168.1.9/Users /home/istc4adm/appdata mount.cifs: permission denied: no match for /home/istc4adm/appdata found in /etc/fstab istc4adm@torrent:~$ I haven't done anything yet in the fstab as I wanted to make sure the that commands were right first. I have checked my SMB settings and there are enable and set to yes I know that I am on the right path for the command, as I was able to mount a share on my QNAP with no issues. can someone please point me to a document or source that explains why I am having issues ? Quote Link to comment
itimpi Posted September 10, 2022 Share Posted September 10, 2022 You are likely to get better informed feedback if you attach your Unraid system’s diagnostics zip file to your next post in this thread so we can see how you have it configured. also, do the directories you are trying to use as mount points at the Linux end exist? Quote Link to comment
chris_netsmart Posted September 10, 2022 Author Share Posted September 10, 2022 45 minutes ago, itimpi said: You are likely to get better informed feedback if you attach your Unraid system’s diagnostics zip file to your next post in this thread so we can see how you have it configured. also, do the directories you are trying to use as mount points at the Linux end exist? thanks for the reply. first thing, you loss me on the Linux end ? what do you ,mean by this. my quest is that I havn't got one. and the second thing, please see my diagnostics file tower-diagnostics-20220910-1159.zip Quote Link to comment
itimpi Posted September 10, 2022 Share Posted September 10, 2022 5 hours ago, chris_netsmart said: irst thing, you loss me on the Linux end ? what do you ,mean by this. my quest is that I havn't got one. You said that you are using a iinux VM ? I wanted to check that the folder within the VM that you are trying to mount the share to actually exists as the error messages suggest it may not. Quote Link to comment
chris_netsmart Posted September 11, 2022 Author Share Posted September 11, 2022 hi itimpi yes I can confirm that the folder within my linux VM does exists, and here is the permissions off the folder Quote Link to comment
Kilrah Posted September 11, 2022 Share Posted September 11, 2022 (edited) You need root perms/sudo to mount. Edited September 11, 2022 by Kilrah Quote Link to comment
chris_netsmart Posted September 11, 2022 Author Share Posted September 11, 2022 3 hours ago, Kilrah said: You need root perms/sudo to mount. sorry I just look at the first positing and I see that I forgot to add the following Last login: Sun Sep 11 06:58:33 2022 from 192.168.1.17 istc4adm@torrent:~$ sudo mount.cifs //192.168.1.9/Users /media/share -o username=root,password=PASSWORD [sudo] password for istc4adm: mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg) istc4adm@torrent:~$ Quote Link to comment
Frank1940 Posted September 11, 2022 Share Posted September 11, 2022 (edited) 5 hours ago, chris_netsmart said: -o username=root,password=PASSWORD This is not a valid Login for a SMB share. See here: You need to setup a share user either on the User tab on the toolbar OR under the Settings >>> User Preferences >>> Users (Which place depends on your previous setup choices.) You then have to assign that user to the Unraid share (Users ---- apparently in your case) with the proper permissions. Edited September 11, 2022 by Frank1940 "setup a share user either on" was "setup a user either on" Quote Link to comment
chris_netsmart Posted September 12, 2022 Author Share Posted September 12, 2022 (edited) thanks Frank1940. that fixed the issue, I didn't realise that the root account don't allow me to connect to the Unraid server. now onto onto the fstab command. :--) Update: ok what Frank1940 said works, but then I ran into a differant issue. when I set the permissions on a user share to be secure and then define my user permissions to have full access - I discovered that the root user only has read only. is there a way to give both users full access ? Edited September 12, 2022 by chris_netsmart Quote Link to comment
chris_netsmart Posted September 18, 2022 Author Share Posted September 18, 2022 is there a way to allow Root to have full access to all my folders, when I set the security permissions to secure ? Quote Link to comment
Frank1940 Posted September 18, 2022 Share Posted September 18, 2022 I suspect one possible way would be to edit the smb.conf, comment out the invalid user line and restart Samba. (You would have to do this each time Unraid is restarted...) Remember that root user is denied access by default because it is a security risk. (All security protocols for any OS firmly state that no login with root privileges should ever be used for routine-- day-to-day --usage of a system! If such a user exists, it provides a quick entry to point for malware and other malfeasance activity.) What is the reason that you require root to have access via SMB? Reuse of a password? Use a different user name with that password. (Still a security issue but at least not one with root privileges...) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.