Sometimes I use the hosts file (C:\Windows\System32\drivers\etc\hosts), but unexpectedly now I have 2 files hosts and hosts.ics.
hosts seems to be empty and hosts.ics looks like:
# Copyright (c) 1993-2001 Microsoft Corp.
#
# This file has been automatically generated for use by Microsoft Internet
# Connection Sharing. It contains the mappings of IP addresses to host names
# for the home network. Please do not make changes to the HOSTS.ICS file.
# Any changes may result in a loss of connectivity between machines on the
# local network.
#
172.24.208.1 somedomain.net
Why has Windows (or other software) created hosts.ics? Where should I add hosts records? Can I remove hosts.ics?
This ics extension stands for Internet Connection Sharing (ICS).
https://www.lifewire.com/what-is-internet-connection-sharing-ics-2377419
Related
My goal: my windows 10 client can access, view, and execute .exe file shared by the Ubuntu server using guest account (Without password).
Expected Result: When I type \ubuntu-server-hostname\bakro in the file explorer, I can see and execute the .exe file
Actual Result: Windows cannot access \ubuntu-server-hostname\bakro with Error code: 0x80004005 Unspecified Error
Additional Observations:
When I run net use \\ubuntu-server-hostname\bakro on Windows 10 client, it results in System error 53 has occurred. The network path was not found.
I can access the shared files from the ubuntu server using smbclient.
When I run smbclient -L \\\\ubuntu-server-hostname, I can see bakro listed there.
When I run smbclient \\\\ubuntu-server-hostname\\bakro to enter the smb command line and I type ls to list the files inside the share, I can see the .exe file.
In both of these cases, I was asked for my current user account password. I responded by pressing enter key (blank password).
I checked the log by using systemctl status smbd and results in multiple lines of session closed for user samba-guest. The timing seems consistent with me acessing the share via smbclient.
The ubuntu server is also running OpenVPN server. The OpenVPN server uses 10.8.0.0/24 subnet and is assigned 10.8.0.1 ip address. If I connect to the OpenVPN server using the same Windows 10 computer and then access the samba share by typing \\10.8.0.1 in the file explorer, I can see the folder bakro listed. I can browse the folder and execute the .exe file (which is my desired and expected result). This access attempt is recorded in the samba log using systemctl status smbd.
What I have done:
Based on Observation #1, I replaced the hostname with server public ip address. It yields the same result for accessing via both net use and file explorer. Both attempts are not recorded in samba log obtained via systemctl status smbd.
Based on Observation #1 and #2, I checked the Ubuntu server firewall using ufw status. Samba is listed as allowed via both ipv4 and ipv6. I also checked the server's security group. Port 445 TCP is listed as allowed.
I have tried disabling ufw and setting security group to allow connection to all ports from anywhere and I still can't access the share.
Based on Observation #3, I obtained a list of network interfaces using ip link show. 3 interfaces are obtained: lo (loopback), eth0 (internet), tun0 (OpenVPN). I added interfaces = lo eth0 into smb.conf. The result: I cannot access the share from both \\ubuntu-server-hostname\bakro and \\10.8.0.1\bakro.
I tried changing the guest account from samba-guest to nobody. Nothing changed except the log now shows session closed for user nobody instead.
I tried adding client min protocol = SMB2 and client max protocol = SMB3 to smb.conf source
Changed File sharing connections to enable 40 and 56 bit encryption in Advanced sharing settings in Windows 10 client.
Minor Observation:
I swear I tested the file sharing capabilities using the same Windows 10 computer when I first setup the samba service (But my memory is unreliable at best)
I also tried to access \ubuntu-server-hostname\bakro via file explorer on 2 other Windows 7 computer with same result.
The following are the contents of my smb.conf:
# Global parameters
[global]
disable netbios = Yes
guest account = samba-guest
interfaces = 0.0.0.0/0
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
security = USER
server role = standalone server
server string = ubuntu-samba-server
unix password sync = Yes
usershare allow guests = Yes
idmap config * : backend = tdb
[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[bakro]
guest ok = Yes
path = /srv/files/bakro
Everything is changing slowly. I have been using for more than 15 years very silmple smb.conf but suddenly it was not possible to connect to a share as guest. If I configured the home-dir share, it was OK, but the free share for guest was denied. It took me some time to find that in the share definition it is necessary to specify: valid users = nobody as you can see in the example:
[data]
path = /srv/data
valid users = nobody
force user = nobody
read list = nobody
write list = nobody
guest account = nobody
guest only = yes
guest ok = yes
I cannot explain, why and how it is function. Just know, it is dependent on on samba version (now: 4.11.5-Debian).
The dir /srv/data on linux side should have nobody:nogroup and at least 666 for files and 777 for dirs. Hence the create mask = 666 and directioy mask = 777 could be useful. In this way you should correct the global settings.
Well, after looking for many solutions. I came here now.
I am setting up WHM/cPanel for hosting website. Everything was going smooth but I am stuck on FTP connection (Server sent passive reply with unroutable address. Using server address instead.)
Server Details:
CentOS Linux release 7.2.1511 (Core)
WHM/cPanel Version 11.58.0.13
FTP Server: PureFTPD
Acutal error while connecting
To fix this issue and get FTP working you need to open up more numbered ports so FTP can connect. I assume you are using CSF.
Login to WHM then go to CSF >> Firewall Configuration >>
allow TCP_In 30000:50000 and TCP_Out 30000:50000
Once you made the changes Restart the firewall
Now you need to make changes in FTP config file to use these ports, you will find this file to this location /etc/pure-ftpd.conf
Now you will see a line as follows and you will need to uncomment it
# Port range for passive connections replies. - for firewalling.
PassivePortRange 30000 50000
Restart FTP Service and should work.
After associating Elastic IP on a Cloud server instance I cannot login anymore
ssh -i "ec2.pem" ubuntu#1.2.3.4
###########################################################
# WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! #
###########################################################
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is...
Please contact your system administrator.
How can I asssign a static IP (Elastic IP) with my EC2 Cloud server and still be able to login with the system / console?
This is merely a warning that you are connecting to a system that had a different SSH fingerprint, as stored in your local .ssh/known_hosts file. If you know things are okay, just delete the appropriate entry from that file and you can connect again.
I've set up a PROFTP server on a CentOS 7 machine. And I am accessing it from other machines (with windows servers) to send files to it.
I've created some rules to only enable to stor files to a certain directory and the subdirectories will have different ownerships. At this point they are owned by user.
<Directory pathToDir>
<Limit STOR CWD>
AllowAll
</Limit>
<Limit READ RMD DELE MKD>
DenyAll
</Limit>
<Directory>
So here is what happens to me.
I log in with user from a windows server machine and access first sub-directory (own user grp user), mput several files and the files are copied.
I log in with user from a different windows server machine and access second sub-directory (own user grp user), put file and I get confirmation code (200 PORT command successful), but transfer doesn't start, however the file is created on the server and it is empty.
If I use my laptop, everything works.
Does anyone know how to fix this? Or what is wrong with my FTP server?
EDIT: FIXED. It was a windows firewall issue, couldn't get response from the ftp server. Since my server has a static ip I managed to add an exception to the windows firewall allowing only that ip to have full access to the ftp rather than opening a set of ports.
these would point to a firewall issue:
If the connection times out (rather than fails instantly)
If a directory listing from the client also fails
as a workaround you could try passive (PASV) FTP.
The application log in the event viewer shows
Unable to load SiteMinder host configuration object or host configuration file
for Siteminder 12.51 on IIS 7.5 (64bit) OS Windows 2008 (64bit).
When do you get the error? Is it when you're configuring the Webagent?
Anyway, verify the following.
Verify your environment variables are set correctly, if must have references to the Webagent files, you may need to export the envvars in the webagent or policy server folder (nete_wa_env...) file.
if the host config object you're using exists? Verify this using the
Admin UI
If the hostname is configured in the policy server as a trusted host
Verify if the settings are correct in the corresponding SmHost.conf file in the webagent folder
Verify and eliminate any duplicate or conflicting lines in your IIS config files which refer to siteminder.
Verify the host config object and the agent config object settings.
make sure WebAgent.conf is pointing to the correct SmHost.conf and SmHost.conf has the correct HostConfigObject defined (with the exact case that is used in the Policy Store).
If the HCO in the Policy Store is named "DefaultHostSettings" and SmHost.conf contains HostConfigObject=defaulthostsettings you will get this type of error.
Try re-registering the web agent with the policy server using the smreghost command.