cdoublejj Posted September 9, 2020 Share Posted September 9, 2020 share can not be accessed when set to private. did i put too long of a password in for the user account? using SMB with case sensitive yes and have EXPLICITLY assigned one single user RW. what am i missing? Quote Link to comment
JonathanM Posted September 9, 2020 Share Posted September 9, 2020 You are probably already connected to the server using a different account. Windows will only allow one set of credentials to be used at a time, and even though it asks for a username and password, it'll never try it. To confirm, temporarily set ALL exported shares to private, restart your client computer, and see what happens when you enter those credentials. Quote Link to comment
cdoublejj Posted September 10, 2020 Author Share Posted September 10, 2020 15 hours ago, jonathanm said: You are probably already connected to the server using a different account. Windows will only allow one set of credentials to be used at a time, and even though it asks for a username and password, it'll never try it. To confirm, temporarily set ALL exported shares to private, restart your client computer, and see what happens when you enter those credentials. would this also cause problem for an ubuntu machine trying to connect? could i make a second service account and give it access to the share? Quote Link to comment
JonathanM Posted September 10, 2020 Share Posted September 10, 2020 32 minutes ago, cdoublejj said: would this also cause problem for an ubuntu machine trying to connect? could i make a second service account and give it access to the share? It shouldn't. What command are you using to mount it? Have you tried what I said with the windows machine? Quote Link to comment
cdoublejj Posted September 10, 2020 Author Share Posted September 10, 2020 i don't need it connect with a windows machine. i have this in my fstab //192.168.1.123/NextCloud /mnt/NextCloud cifs username=<user>,password=<password>,uid=1000,gid=100, 0 0 sudo -a gives permission denied error. even though the user name is spelled right the PW copy and pasted. HOWEVER if i set it to public it will work. Quote Link to comment
JonathanM Posted September 10, 2020 Share Posted September 10, 2020 Try //<serverIP>/<share> <local mount point> cifs file_mode=0777,dir_mode=0777,_netdev,username=<user>,password=<password>,uid=1000,gid=1000 0 0 Be sure your local mount point has the correct permissions as well. Quote Link to comment
cdoublejj Posted September 10, 2020 Author Share Posted September 10, 2020 13 minutes ago, jonathanm said: Try //<serverIP>/<share> <local mount point> cifs file_mode=0777,dir_mode=0777,_netdev,username=<user>,password=<password>,uid=1000,gid=1000 0 0 Be sure your local mount point has the correct permissions as well. do i want the brackets in there just like that over the ip and share? Quote Link to comment
JonathanM Posted September 10, 2020 Share Posted September 10, 2020 1 minute ago, cdoublejj said: do i want the brackets in there just like that over the ip and share? No. The brackets are just to designate things you need to customize. Quote Link to comment
cdoublejj Posted September 10, 2020 Author Share Posted September 10, 2020 9 minutes ago, jonathanm said: No. The brackets are just to designate things you need to customize. maybe i should take the brackets off of the credentials in the current line i have now!? Quote Link to comment
JonathanM Posted September 10, 2020 Share Posted September 10, 2020 13 minutes ago, cdoublejj said: maybe i should take the brackets off of the credentials in the current line i have now!? If your credentials don't use brackets, yes. Brackets are perfectly legal characters in a password. Quote Link to comment
cdoublejj Posted September 10, 2020 Author Share Posted September 10, 2020 (edited) huh i can't LS even as sudo, nor mkdir EDIT: rebooted and ran. sudo mount -a i've had issue binding ubuntu 20.04 on other computers to smb as well. and NFS in unraid is broke and has been. LimeTech said the solution is to stop using it. EDIT: i think SMB is broken on Ubuntu 20.04 LTS and NFS is broken on unRaid 6.8 so i'm screwed. Edited September 10, 2020 by cdoublejj Quote Link to comment
JonathanM Posted September 10, 2020 Share Posted September 10, 2020 Try putting the local mount point inside your home directory instead of /mnt cd to your Documents folder, and mkdir Nextcloud there, don't use sudo. Then change the fstab local folder to /home/<ubuntu user>/Documents/Nextcloud and see how you get on. P.S. Please replace <ubuntu user> with the correct characters. Like /home/owner/Documents/Nextcloud, if your Ubuntu username was owner. 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.