LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2019, 11:07 AM   #1
itsallgood
LQ Newbie
 
Registered: Jan 2015
Posts: 26

Rep: Reputation: Disabled
Question How to check SMB/CIFS mounts and permissions?


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!
 
Old 10-11-2019, 12:23 PM   #2
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
/etc/exports is for NFS not SMB/CIFS. The Samba configuration file is going to be something like /etc/samba/smb.conf. Mapping Samba users and permissions to UNIX permissions can be done in several ways. I suggest posting your samba configuration file. As far as locking down by IP is concerned, that can be done in more than one way was well. There are TCP Wrappers, netfilter/nftables, and even through the samba configuration. I highly doubt you will have to touch access.conf.

If he setup local users, he PROBABLY, but I can't say for certain without seeing your config, used TDB to store the users. Read the man page for smbpasswd for instructions on how to use it. He could have also made it an AD member and used ID mapping, a map file, or map script.

Samba can be complicated...

Last edited by tyler2016; 10-11-2019 at 12:27 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NSSS and user cifs mounts darkstar33 Linux - Networking 1 06-08-2016 02:51 PM
[SOLVED] autofs and mounting cifs mounts on centos 6.3 thllgo Linux - Server 10 04-14-2016 04:15 PM
nfs mounts and cifs shares zahheb Linux - Newbie 1 08-08-2012 07:13 AM
NFS and CIFS Mounts At Boot-time Hang on Access Garibaldi3489 Linux - Server 2 11-11-2011 02:35 PM
[SOLVED] autofs, fstab and manual cifs mounts fail if using credentials file carltm Red Hat 1 12-02-2009 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration