Comment on How to make Samba smbfs / cifs mount share location with user / pass credentials authenticate via file stored credentials by admin.
♦ Something else I forgot to mention in article, If it happens that some samba pass credential has been lost it is useful to change samba user password with command:
smbpasswd smbusername
♦ To create a samba entry for an existing system user, use the pdbedit command:
if it is needded to add a complete new unexisting user to the samba users do:
smbserver:~# pdbedit -a NewSmbUserName
By default samba server password database (if not changed to another location in smb.conf is stored on server) under:
/var/lib/samba/private/passdb.tdb
admin Also Commented
♦ Also, If you need to join a Linux Samba Server to a Windows Domain from the Windows domain using the net command run:
$ net join -w WINDOWS-DOMAIN -s ' win-server' -U Administrator%password
♦ You can then list the users in the Windows domain using wbinfo command
$ wbinfo -u
How to make Samba smbfs / cifs mount share location with user / pass credentials authenticate via file stored credentials
One small hint in case if you have no password protection for a share and want to avoid the annoying pasword samba prompt the way to do it is like so:
smbclient -U% //192.168.1.2/My_Folder
Once connected you can use Linux commands to list and travel between files.
File transfer with smbclient is also possible by using get, put, mget, and mput commands.
Recent Comments by admin
Install and configure rkhunter for improved security on a PCI DSS Linux / BSD servers with no access to Internet
–rwo, –report-warnings-only
This option causes only warning messages to be displayed. This can be useful when rkhunter is run via cron. Other options may
be used to force other items of information to be displayed.
–sk, –skip-keypress
When the –check command option is used, after certain sections of tests, the user will be prompted to press the return key
in order to continue. This option disables that feature, and rkhunter will run until all the tests have completed.
Install and configure rkhunter for improved security on a PCI DSS Linux / BSD servers with no access to Internet
As rkhunter check, can be pretty annoying and ask you to press keypresses multiple times and spit you a lot of unnecessery data a very good useful option arguments are:
–rwo and –sk
# rkhunter -c –rwo –sk
Warning: The SSH and rkhunter configuration options should be the same:
SSH configuration option 'PermitRootLogin': yes
Rkhunter configuration option 'ALLOW_SSH_ROOT_USER': no
Sorry for really late reply.
perhaps you have to create it or rename the ifcfg-eno1 to ifcfg-eth1 or you have some old ifcfg-enp1s0f0 or ifcfg-eno still under /etc/sysconfig/network-scripts/ interfering
How to RPM update Hypervisors and Virtual Machines running Haproxy High Availability cluster on KVM, Virtuozzo without a downtime on RHEL / CentOS Linux
if you happen to be missing versionlock plugin and you need to get use of it
yum versionlock capabilities
You will have to install yum-utils package:
For example on CentOS 8 Linux, to enable the yum versionlock plugiun
yum install yum-utils.noarch
In case if by default log is not configured for snoopy,
these are default output locations on various Linux distributions:
Distribution | Snoopy output location | Notes |
---|---|---|
CentOS |
/var/log/secure
|
|
Debian |
/var/log/auth.log
|
|
Ubuntu |
/var/log/auth.log
|
|
(others) |
/var/log/messages
|
(potentially, could be elsewhere) |