How to check SMB/CIFS mounts and permissions?
by itsallgood from LinuxQuestions.org on (#4SBPW)
Good day,
I just got put in charge of a Linux server (coming from a jr. Windows sysadmin background so I admit it. I'm lost)
One of the users has requested a SMB/CIFS mount for a directory on the Linux server on his Windows desktop.
The previous admin HAD set up a file share on the Linux server in the past and created a Windows batch file to mount it on the user's computer (I tested this on my workstation and it mounted). I did go to /etc/exports and the mounts I need are set up and listed there. The thing I am confused about however, is how I find the "local" account and password that the previous admin set up for the user to give access to those mounts, and how do I look at the permissions? The previous admin in his notes said that there is a local SMB/CIFS username and password that he set up for the users on the server (and SSH is authenticated via FreeIPA) so that is why there is a local username and password for these purposes apparently (does this sound right?)
To complicate things, this person has moved and is now working offsite (permanently) with VPN so I need to be sure he can access the mount while he has an IP address in the VPN pool. I think the previous administrator had locked it down by IP (is this something I will have to change in access.conf and iptables?)
I am very grateful for any advice you can send my way. Thank you!


I just got put in charge of a Linux server (coming from a jr. Windows sysadmin background so I admit it. I'm lost)
One of the users has requested a SMB/CIFS mount for a directory on the Linux server on his Windows desktop.
The previous admin HAD set up a file share on the Linux server in the past and created a Windows batch file to mount it on the user's computer (I tested this on my workstation and it mounted). I did go to /etc/exports and the mounts I need are set up and listed there. The thing I am confused about however, is how I find the "local" account and password that the previous admin set up for the user to give access to those mounts, and how do I look at the permissions? The previous admin in his notes said that there is a local SMB/CIFS username and password that he set up for the users on the server (and SSH is authenticated via FreeIPA) so that is why there is a local username and password for these purposes apparently (does this sound right?)
To complicate things, this person has moved and is now working offsite (permanently) with VPN so I need to be sure he can access the mount while he has an IP address in the VPN pool. I think the previous administrator had locked it down by IP (is this something I will have to change in access.conf and iptables?)
I am very grateful for any advice you can send my way. Thank you!