networks – Change the subnet mask to / 23 from / 24 on the local network

Stack exchange network

The Stack Exchange network consists of 176 question and answer communities that include Stack Overflow, the largest and most reliable online community for developers to learn, share their knowledge and develop their careers.

Visit Stack Exchange

mojave: how to change the password of a local administrator user who has never logged in with a bash script

Every Mac OS X system in my company uses 3 local user accounts.

The first user is a local administrator user, the second user is a local standard user and the 3rd user is a local administrator user.

The third user account is being used by my Security Department to scan our Mac OS X systems.

Is 3rd user has never been registered in the system.

The third user is there, but this user does not have a regular client /Users/username path folder. Again it's there, I can use it, I can SSH, etc. but once again he does not have a habitual /Users/username Start route because we never login.

I need to create a bash script that changes and updates this password for the third user.

Surfing the web, I found this solution:

sudo /usr/bin/dscl . -passwd /Users/username newpassword
sudo security set-keychain-password -o oldpassword -p newpassword /Users/username/Library/Keychains/login.keychain

My problem is that the user does not have a regular client. /Users/username Start path, because we never login. We just created the user so that the Security team can use it to scan.

How can I create a bash script that changes the password?

For you to know, the user has been created with the following script:

USERFULLNAME="Batman Scan User"

dscl . -create /Users/"${USERNAME}" isHidden 1
dscl . -create /Users/"${USERNAME}" UserShell /bin/bash
dscl . -create /Users/"${USERNAME}" RealName "${USERFULLNAME}"
dscl . -create /Users/"${USERNAME}" UniqueID "${USERUID}"
dscl . -create /Users/"${USERNAME}" PrimaryGroupID 20
dscl . -create /Users/"${USERNAME}" NFSHomeDirectory /Users/"${USERNAME}"
dscl . -passwd /Users/"${USERNAME}" "${USERPASS}"
dscl . -append /Groups/admin GroupMembership "${USERNAME}"

Windows: Firewall logs with local IP contact local IP over the Internet

I noticed some strange behavior in our firewall logs: a computer in our subnet sending UDP packets on port 161 to an IP on subnet (we do not have a subnet like that), and packets continue to through the LAN to WAN policy. I have installed Sysmon on the computer that is creating this connection, but I do not know what to look for in it. Does anyone here have an idea of ​​what is happening?
I'm sorry if I'm not giving enough information. I do not want to spoil myself by giving too many details.

Local listings, social bookmarking, photo sharing with reasonable price for $ 3

Local listings, social bookmarking, photo sharing at a reasonable price

Hello, I will make appointments for EE. UU., AUS, CANADA, INDIA with high DA sites. Presentations of directories and classified presentations. We will work in this industry since the last 4 years and we will make the punctual delivery of your projects. We can also do audits for your business and cleaning or corrections.


– Link building SEO off the page

– Shipments to directories

– Classifieds Shipping

– Social bookmarks

– Share photo


Manually, 100 EE. UU Live the local citation for your business for $ 30

Manually 100 United States live local appointments for your business

I will make local listings / local appointments for the United States.

Appointments are very important for any business, since appointments are anywhere online where the name, address and phone number (NAP) of your company appear on the list. One of the reasons why dating sites are so good for local SEO is because search engines, like Google and Bing, rely on quality dating sites, which can help you show up better in search engines. and your business can get more traffic in SEO.

My characteristics:

My main priority is to help you beat your competitor.

I will provide the maximum LIVE LINKS and I will also provide you with a well-organized excel as proof that I have posted your business on Live Citations.

Create new account for each listing

Appointments 100% NAP. (Name, address, telephone)

Appointments with Logo and Other Images.

Complete reports with login information (Excel file)

Only popular and recognized sites are used

100% manual work

Highly recommended in the search engines.

I will need things from you:

1. Name of the company
2. Address
3. Telephone number
4. Business email
5. Website
6. Description of the company
7. Category
8. Logo
9. Name of the owner.

Order your report today …!

Please, do not give him any adult work.


Connect to the local spark master from Python Cli or jupyter notebook

I am trying to connect to the local sparks master (localhost: 7777) from Python Cli but I get the error "Connection rejected".

Here is my code:

import park
from pyspark.sql import SparkSession
hive_metastore = "thrift: // localhost: 9083"
master_uri = & # 39; spark: // localhost: 7777 & # 39;
spark = SparkSession.builder.master (master_uri) .config ("hive.metastore.uris", hive_metastore) .enableHiveSupport (). getOrCreate ()

I also tried this solution but it did not work.

How can I send an email, with an attachment of the user's local storage, using Google Sheets Script?

I'm new to Google Script but I have enough experience in Excel VBA. I am trying to set up a Google sheet to allow the sending of a document given by an email attachment to a series of recipients.
I have the part of the email running and I can see how to attach a document as a PDF of Google Drive, but I need to know how to offer the user a selection of files in their own local storage, that is, on their own hard drive of the computer. It would be great if you could encode something that would offer the user a selection screen like MS Explorer from which they could select a file to attach. I realize that this may not be immediately possible, and that the file must first be loaded into Google Drive. If so, it would be great to automate that too.
I would really appreciate any help with this please.

tls – Serving local HTTP over VPN

Your question is not very clear. You wrote:

I am connecting to that server through VPN (wireguard).

And then:

I do not direct all traffic through that VPN, only DNS requests.

Therefore, if the HTTP transmission between your client and your server is not routed through the VPN, then the connection is not encrypted.

On the contrary, if you route traffic to your HTTP server through the VPN, then it is encrypted.

However, keep in mind that the traffic between your VPN gateway and your HTTP server will remain clear.

Create, read and update from the SQL table to the local SharePoint 2016?

Ultimately, I would like to create an external list that can be customized (that is, partly columns of a SQL table and partly native SharePoint columns).

BCS is not an option because it would not allow me to create additional columns in an "external" SharePoint list. I am a beginner programmer, but I am looking to create a BDC model or some type of SharePoint add-on in VS to complete the SQL data in a custom SP list.

Is there code that exists for this? Or some method that already exists and that can guide me? I am at a loss after numerous attempts and I would appreciate the help.

github: perform a pull request to a remote control after deleting the local .git folder

I recently deleted my local .git folder. When I try to make a new PR for my remote / uplink, I can not because I deleted my own local git history and I get this message when I try to compare and open a PR:

There is nothing to compare.
X: master and myRepo: x_branch are completely different engagement stories.

How can I merge the confirmation history of the upstream with mine, and then send the new code that is in the PR?

I'm thinking about re-basing, but I'm not sure if that would do it.