Re: [CentOS] Samba help

2017-11-15 Thread Gordon Messmer
On 11/14/2017 06:11 PM, david wrote: # Samba Configuration [global] [STUFF]  force user = melinux  guest ok   = yes  path   = /home/samba-share  write list = melinux You may need to enable the samba_enable_home_dirs option:     setsebool -P samba_enable_home_dirs=1 You mig

Re: [CentOS] How to blacklist a device driver (sysemd)

2017-11-15 Thread Gordon Messmer
On 11/15/2017 10:35 AM, Frank Thommen wrote: I tried with the files   /etc/modprobe.d/blacklist   /etc/modprobe.d/blacklist.conf and with entries   blacklist mlx5_core   blacklist mlx5_ib The "blacklist" entries prevent a module being loaded by its alias (typically a PCI ID), but not from be

[CentOS] How to blacklist a device driver (sysemd)

2017-11-15 Thread Frank Thommen
Hi, how can a specific device driver in CentOS 7 be blacklisted, so that it doesn't load at boot time? We have Infiniband adapters which are not completely supported by CentOS and we want to silence the error messages for the time being. I tried with the files /etc/modprobe.d/blacklist

Re: [CentOS] run bash from cron

2017-11-15 Thread m . roth
Mark Haney wrote: > On 11/15/2017 11:48 AM, m.r...@5-cent.us wrote: >> Mark Haney wrote: >>> For the record, this was the only option to handle the task I'm having >>> issues with inside cron. >>> >> Yes. Do not trust your environment, running as a cron job, to be what >> you think it is. Try testi

Re: [CentOS] run bash from cron

2017-11-15 Thread Mark Haney
On 11/15/2017 11:57 AM, Paul Heinlein wrote: In your crontab, try   env PATH="$PATH:/root/bin" bash filename.txt Maybe I wasn't terribly clear, for which I apologize.  I'm not running the text file itself from cron.  I'm running an ansible playbook from cron, which, as one of its tasks runs '

Re: [CentOS] run bash from cron

2017-11-15 Thread Mark Haney
On 11/15/2017 11:48 AM, m.r...@5-cent.us wrote: Mark Haney wrote: For the record, this was the only option to handle the task I'm having issues with inside cron. Yes. Do not trust your environment, running as a cron job, to be what you think it is. Try testing it by have your cron job, at the

Re: [CentOS] run bash from cron

2017-11-15 Thread Mark Haney
On 11/15/2017 11:55 AM, Noam Bernstein wrote: On Nov 15, 2017, at 11:48 AM, m.r...@5-cent.us wrote: Mark Haney wrote: This might be a bit OT, but I've never had to do this before and what I've googled doesn't seem to be working. I have an ansible playbook that I'm working on that I want to run

Re: [CentOS] run bash from cron

2017-11-15 Thread Paul Heinlein
On Wed, 15 Nov 2017, Mark Haney wrote: This might be a bit OT, but I've never had to do this before and what I've googled doesn't seem to be working. I have an ansible playbook that I'm working on that I want to run as a cronjob.  One task I'm having trouble with is where I have a text file w

Re: [CentOS] run bash from cron

2017-11-15 Thread Noam Bernstein
> On Nov 15, 2017, at 11:48 AM, m.r...@5-cent.us wrote: > > Mark Haney wrote: >> This might be a bit OT, but I've never had to do this before and what >> I've googled doesn't seem to be working. >> >> I have an ansible playbook that I'm working on that I want to run as a >> cronjob. One task I'

Re: [CentOS] run bash from cron

2017-11-15 Thread m . roth
Mark Haney wrote: > This might be a bit OT, but I've never had to do this before and what > I've googled doesn't seem to be working. > > I have an ansible playbook that I'm working on that I want to run as a > cronjob.  One task I'm having trouble with is where I have a text file > with lines like:

Re: [CentOS] run bash from cron

2017-11-15 Thread Frank Cox
On Wed, 15 Nov 2017 11:29:50 -0500 Mark Haney wrote: > This text file has to be 'executed' using 'bash filename.txt'. (Don't > ask why, I'm working on code that isn't mine.) Try adding #!/bin/bash as the first line of the text file and then run it with just the filename. -- MELVILLE THEATRE

[CentOS] run bash from cron

2017-11-15 Thread Mark Haney
This might be a bit OT, but I've never had to do this before and what I've googled doesn't seem to be working. I have an ansible playbook that I'm working on that I want to run as a cronjob.  One task I'm having trouble with is where I have a text file with lines like: rd.pl "blah blah" rd.p

Re: [CentOS] Samba help

2017-11-15 Thread david
At 02:51 AM 11/15/2017, you wrote: El 15/11/17 a las 3:11, david escribió: Folks I have a Centos7 system (SOFA) and want to install a Samba share named "STUFF" for the machines inside my home. All users in my home have read access to the share, but only one user "me" has write permissio

Re: [CentOS] Samba help

2017-11-15 Thread Jose Maria Terry Jimenez
El 15/11/17 a las 3:11, david escribió: Folks I have a Centos7 system (SOFA) and want to install a Samba share named "STUFF" for the machines inside my home.  All users in my home have read access to the share, but only one user "me" has write permission.  The configuration below worked just