Linux

65K

Solutions

32K

Contributors

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi!

We have recently taken over a new client who has an Ubuntu 14.04 server running Samba that acts as a DC. We also have a Windows 2012 R2 server with AD connected to this server.

What we want to do, is make a new share that only members of a security group in AD can access. Following the guide found here, https://wiki.samba.org/index.php/Setting_up_a_Share_Using_Windows_ACLs , i run the below as root,

chown -R root:"Domain Admins" /mnt/data/destination

Each time I do this, Ubuntu cant understand who Domain Admins is. My samba config for this is

[Share Name]
path = "/mnt/data/destination"
read only = no
vfs objects = streams_xattr

The share works and is viewable, and making the permissions 777 in Linux does allow me to write (Will be changed, that's just for testing) but the whole idea of this share was for it to be exclusive for certain users in a security group.

Any assistance or queries would be greatly appreciated!
0
Keep up with what's happening at Experts Exchange!
LVL 11
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

MT DV Rsync
This article explains how to use the rsync command to create backups and sync data across hosts. Rsync is a very useful command that is often used to copy data, make backups, migrate hosts, and bridge the gap between site staging and production environments.
0
Hello, I am having an issue with our sesame database based on Linux mint  it create backups hourly if i copy the .db backup file over to one of our AD user computer and open the backup file locally on that pc it works but if i want to use samba shared folder which is mapped to all AD users and try to open via network it wouldn't open, the .db file has 644 permission, please help me out with issue thanks.
0
MT DV Cron2
Welcome back to our beginners guide of the popular Unix tool, cron. If you missed part one where we introduced this tool, the link is below. We left off learning how to build a simple script to schedule automatic back ups. Now, we’ll learn how to set up our favorite type of notification.
0
MT DV Cron
Cron is one of the most popular and basic utilities found on Unix systems. Combined with other tools, cron makes it exceptionally easy to automate a broad range of tasks on your server.
0
I am currently running Ubuntu 16.04 LTS (I’m the other person on the planet who likes Unity), and just upgraded the kernel over the weekend.  The upgrade was from v4.10 to 4.13.  As suspected, this broke my VMWare Workstation 12.5.7 installation (it is only good up to kernel v4.12), and I ended up regressing the kernel back to 4.10 (my VMs are critical) via grub2.  My only concern with this is whether the other updates that came at the same time were dependent on v4.13, and if the regression broke them.  In any case, I was reading up on the new kernel releases over the week in response to Meltdown/Spectre, and the kernel versions mentioned are 4.4.0.108 and 4.4.0.109.  So, why am I at v4.10 (or even 4.13)...?!?  Am I confusing the version numbers?

I sent the following to VMWare Support:

I am currently using Workstation 12.5.7, which is currently broken under kernel versions >= 4.13.  From a security perspective, the inability to upgrade kernels makes me extremely nervous (I am currently sitting at v4.10).  I understand that general support for this flavor of Workstation ends next month, so I was hoping for a timeline that this security vulnerability is hopefully being addressed.  I am not in the position to upgrade to version 14 at the current time, both from a financial and temporal standpoint.  Please advise as to my options, and thank you for your time.
0
First, I know little about how Email and DNS do what they do.
I have my own domain, I’ll call it mydomain.com.
This is just personal use for email. I don’t do anything with the website.

My understanding is that the Registrar for my domain has the information in their DNS servers to translate user@mydomain.com to an IP address so email gets delivered and sent.
That works fine from my PC’s.

The problem I am having is with a Linux server I have.
I just want it to send errors, reports, etc. to me@mydomain.com.

It sends mail as user@servername.mydomain.com.
Email gets rejected.
My thought is that something needs to be done on the Registrars DNS servers to validate server.mydomain.com as part of mydomain.com.
I can make changes to the DNS records, but as I said I know little about it.
I created a s sub-domain  -  server.mydomain.com
And I created NS records in the DNS server:
server.mydomain.com points to dns1.com and dns2.com

Don’t know if that is right or wrong.

Any guidance here to make this work would be greatly appreciated.
0
1
 
LVL 18

Expert Comment

by:Lucas Bishop
Really have to tip your hat to the developers who do game dev for *nix. I'd think the dev investment would be significantly higher than the potential return.
1
 
LVL 10

Author Comment

by:Brandon Lyon
Linux games are seeing more investment lately. All of the major game development engines support Linux. As long as a developer makes sure their toolkits support multiple platforms it becomes fairly easy to support Linux. I've also heard developers mention that developing cross-platform games on Linux can decrease bugs on other platforms. It helps that companies like Android and Nintendo have Linux based OS and a large target audience.

Sometimes the Linux version is cost-prohibitive to implement but other times it works out alright, especially since Linux gamers are typically starved for good games.
0
Hi Experts,

I need to search multiple error keywords in Linux real time log files through shell script.
Below is something I tried and works on command line, it needs to be fine tuned or may be a different approach is needed.

Need your help.

grep -En "fatal|error|WARN|fail" /scripts/log.txt --color=auto > /scripts/log/errors_found.txt

mailx -s "Below are the errors found on host $(hostname)" -E email@email.com < /scripts/log/errors_found.txt

Thanks in Advance!

Sat
0
Dear Experts, how can schedule set of commands in Linux program?

For example: I want to schedule a program called A running at 12.00 AM everyday; but when that A program is running, a set of commands will be executed automatically.

Please suggest.
0
Free Tool: Subnet Calculator
LVL 11
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

I just built a new Ubuntu 16.4 server and I want to install some software. The software is called MOODLE. It requires PHP, MySQL and Apache.

If I do the entire install under root am I in for trouble? If yes, what kind of trouble? Is it a file ownership trouble?
0
[root@db01 ~]# yum updateinfo info --cve CVE-2017-5715
Loaded plugins: product-id, search-disabled-repos, subscription-manager
updateinfo info done

I am pretty sure this CVE is not installed. However i am unable to see the this CVE in the list.
0
We recently performed a yum update on the RHEL7 box, and much to our dismay, the ability to open the port now fails.

There are two scripts we have to run in order to open the port:
This one runs:
sudo iptables -A INPUT -p tcp --dport 1234 -j ACCEPT

This one fails:
sudo iptables -A IN_public_allow -p tcp -m tcp --dport 1234 -m conntrack --ctstate NEW -j ACCEPT

Gives the following error:
iptables: No chain/target/match by that name.

This always worked for years, now that latest update won't allow this to run

Any help would be greatly appreciated.

Thanks
0
I can clearly see the file:

[oid bin]$ ls -xl lsn*
-rwxr-xr-x. 1 775 oracle  65053 Jun 30  2014 lsnodes
-rwxr-x--x. 1 775 oracle 155872 Jan 31  2017 lsnrctl
-rwxr-xr-x. 1 775 oracle      0 Jul  6  2015 lsnrctl0

but get this:

[oid bin]$ lsnrctl status
bash: lsnrctl: command not found

I am new to Linux, but executed:
 sudo chown -R 775 /oracle directory name

still no love....

What gives?
0
Dear All

                Is the ddns update success below ?

1
2
Keith
0
i asked this before and i can't solve it again.  where do i get the driver and cups wrapper (???) to make my printer work in ubuntu 16.04?    i had it working before and didn't write it down.  it uses a usb cable.  i have no drivers.  it is a new install of the os.
0
Hi Pals,

Can some one recommend me some open source tools to monitor windows server performance ( CPU Usage, Memory Usage, Disk Usage, No. of active session on web server ). To keep you all posted, I have limited knowledge on Linux platforms, So i would require easy set up option and doesn't want to install any clients in the windows server for polling.
0
Hi Team,
I am able to connect and run single statements in db2 server through Linux command line but unable to run PL SQL Anonymous blocks.

First I typed the "db2 -t" then enter the db2 mode and then given below command.

db2 => BEGIN
  dbms_output.put_line( 'Hello' );
  END;db2 (cont.) => DB21034E  The command was processed as an SQL statement because it was not a
valid Command Line Processor command.  During SQL processing it returned:
SQL0104N  An unexpected token "BEGIN" was found following
"BEGIN-OF-STATEMENT".  Expected tokens may include:  "<call>".  LINE NUMBER=1.
SQLSTATE=42601

Please help me how to run.

Thanks in Advance.

Hari
0
We have configured fetchmail to fetch mails from catchall server.If we send mail to online domain user c@a.com along with local zimbra user a@a.com and b@a.com means online user receiving 3copies (1 original copy+2 cc copy).How to avoid duplicate mails there.
0
Free Tool: ZipGrep
LVL 11
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Hi Experts,

I am trying to get total disk size from multiple servers and wmic is what I am trying to use.

However I am unable to add the results coming from wmic to find the total disk space. I am trying something like this:

sizelist=`winexe -U rpega/$u%$p //$i "WMIC LOGICALDISK where drivetype=3 get size"|sed s/^M//g`
echo $sizelist > sizelist.file
sizearr=($sizelist)

counter=1
result=0
re='^[0-9]+$'
        while [ "${sizearr[$counter]}" != "" ]; do
          if ! [[ ${sizearr[$counter]} =~ $re ]]; then
        result=`expr $result + ${sizearr[$counter]}`
        fi
        counter=$(expr $counter + 1)
        done

echo "the total size is $result"

Open in new window


i am very bad at shell scripting so the above code may look weird. Please feel free to change it, i would like to be able to add the results coming from wmic command to get total disk allocation size.

The wmic command gives results like this:

Size
107005075456
966230274048
214612045824
53550772224
1429227958272

and I would like to be able to add these numbers and get the result.

Thanks
0
Hi there,

I'm trying to run this command to get the value assigned to the variable, but it's not working.  I want to check the md5 sum of a file after it has been copied to another Linux server:

md5sumcommandazure=$(ssh oracle@10.41.22.69 "md5sum /data/oracle/dpdump/onegeo/ONEGEO20180118-093843.DMP | awk '{ print "'\$1'" }'"'"')

I'm getting this error, what am I missing?

bash: -c: line 0: unexpected EOF while looking for matching `"'
bash: -c: line 1: syntax error: unexpected end of file

Thanks!
- Christian
0
Hello, how can I start a container and open new ports?
0
I have a csv file in wondows and I have installed GOW to allow me to use linux commands to split a file

I need to copy the header record and place that into each split file and have that split file go to a split directory

so my file is here>>
data/current load/testing.csv


I would need to have it split to the following directory
data/current load/spit/

and then I need to make sure I have the header record copied over to each split file

what I have so far is
so here is my input csv file name testing.csv

head -n 1 "F:data\current load"\testing.csv > header_file

tail -n +2 "F:data\current load"\testing.csv > data_file

split -d --lines=1000 "F:data\current load"\data_file "F:data\current load\split"\data_file

at this point i have created all the split data files


ls split\data*

my set of instructions are for each file

copy header_file split\*

cat split\data_file16 >> split\header_file

rename split\header_file split\data_file16.csv

rm split\header_file


so first I am looking for a way to read all the data files names to be able to loop through my second part of the process

and ideally I am sure there must be a single line to do the same thing that I want to do using some sort of awk command
0
following is the error messege im getting while start httpd on Centos 7

httpd[1365]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
0
Is there a way to modify what I use below to transfer a file automatically but using SFTP?  It is ran from a BASH script.

LOCALPATH="/tmp/data/"
USER="myusername"
PASS="mypassword"
FTP="999.99.99.11"
MODE="w"
 
FILENAME="Report.txt"      
curl --disable-epsv --ftp-create-dirs -B -T  $LOCALPATH$FILENAME ftp://$USER:$PASS@$FTP/SystemReview/$FILENAME
0

Linux

65K

Solutions

32K

Contributors

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

Vendor Experts

Sandeep KumarKernel Data Recovery Learn more about Kernel Data Recovery
Naveen SharmaKernel Data Recovery Learn more about Kernel Data Recovery