I want to connect my Ubuntu VM to a samba share on my LAN. It has both guest access and valid users. I simply add the following string to my /etc/fstab
//10.0.0.6/Media /media/nas cifs guest,uid=1000,iocharset=utf8 0 0
then mount -a and everything is up and running.
I create a basic Ubuntu Server Linux Container in Proxmox, create a new user, give myself sudo privileges by adding myself to the admin group and editing the visudo file.
I repeat the same steps above to edit my fstab. I get " cannot mount block device" error when trying to mount. So I try different connection strings, adding username, adding domain, changing the sec=none,ntlm etc etc.
Then I install cifs-utils because I read that might help! The error changes to a generic "mount error(13): Permission denied"
So then I decide to spin up a brand new ubuntu server and make a new samba server with a brand new share. I chmod 777 the share folder, I chmod 777 the media/test mount point on the client. Exact same results, I can't connect.
I can however connect flawlessly on the identical version of Ubuntu as a VM and not a LC on the same proxmox server. I can also connect to the shares via windows and mac and have full RW privlages on both a guest and named user basis.
On the LC client I can also use smbclient to connect to either samba server and see all of the files!!! but I cant mount the share with the fstab entry or with a direct mount -t command.
I've spent way too many days googling and rebuilding my VMs from scratch with no luck. I've rebuild the client a few times now and the test server twice, restarted services, rebooted proxmox any anything else I could find to try.
This only leaves me to conclude that by using a Linux Container on Proxmox vs a full Ubuntu VM I am some how missing something being installed or configured correctly. All of the usernames, passwords, and uid's are identical across all servers and clients for simplicity.
I really have no idea what's going on at this point or how to narrow things down further. The fact that every other client can access these shares except specifically a LC Ubuntu box using mount -t cifs, but works fine with smbclient is so strange. I noticed after installing cifs-utils the client has a /etc/samba/smb.conf file that I am assuming isnt used for the client side.
Any suggestions on what to try/test next?
//10.0.0.6/Media /media/nas cifs guest,uid=1000,iocharset=utf8 0 0
then mount -a and everything is up and running.
I create a basic Ubuntu Server Linux Container in Proxmox, create a new user, give myself sudo privileges by adding myself to the admin group and editing the visudo file.
I repeat the same steps above to edit my fstab. I get " cannot mount block device" error when trying to mount. So I try different connection strings, adding username, adding domain, changing the sec=none,ntlm etc etc.
Then I install cifs-utils because I read that might help! The error changes to a generic "mount error(13): Permission denied"
So then I decide to spin up a brand new ubuntu server and make a new samba server with a brand new share. I chmod 777 the share folder, I chmod 777 the media/test mount point on the client. Exact same results, I can't connect.
I can however connect flawlessly on the identical version of Ubuntu as a VM and not a LC on the same proxmox server. I can also connect to the shares via windows and mac and have full RW privlages on both a guest and named user basis.
On the LC client I can also use smbclient to connect to either samba server and see all of the files!!! but I cant mount the share with the fstab entry or with a direct mount -t command.
I've spent way too many days googling and rebuilding my VMs from scratch with no luck. I've rebuild the client a few times now and the test server twice, restarted services, rebooted proxmox any anything else I could find to try.
This only leaves me to conclude that by using a Linux Container on Proxmox vs a full Ubuntu VM I am some how missing something being installed or configured correctly. All of the usernames, passwords, and uid's are identical across all servers and clients for simplicity.
I really have no idea what's going on at this point or how to narrow things down further. The fact that every other client can access these shares except specifically a LC Ubuntu box using mount -t cifs, but works fine with smbclient is so strange. I noticed after installing cifs-utils the client has a /etc/samba/smb.conf file that I am assuming isnt used for the client side.
Any suggestions on what to try/test next?