I'm trying to execute a command using the following command:
/usr/local/bin/php xxx.php | at now + 10 minutes
However, terminal throws this error:
cannot set egid: Operation not permitted error
I tried adding the user to /etc/at.allow but that doesn't help. I also removed /etc/at.deny, but that also didn't help. Any ideas what is up? How can I give permission to the user to utilize the at command?
The permissions on /usr/bin/at are incorrect, it needs to be setuid to root:
sudo chmod u+s /usr/bin/at
Related
In appveyor I use the statement:
- initexmf --admin --force --mklinks
but due to a problem it gives the message:
initexmf --admin --force --mklinks
Sorry, but "MiKTeX Configuration Utility" did not succeed for the following reason:
Script configuration file not found.
The log file hopefully contains the information to get MiKTeX going again:
C:\ProgramData\MiKTeX\2.9\miktex\log\initexmf_admin.log
The system cannot find the path specified.
Command exited with code 1
due to the error code the process terminates and I cannot type the C:\ProgramData\MiKTeX\2.9\miktex\log\initexmf_admin.log anymore, so a bit hard to debug ...
questions:
How to continue after an error
How to stop after the outputting the file (exit 1 ?)
To run a script on failure use on_failure section, for example to push initexmf_admin.log to artifacts:
on_failure:
- appveyor PushArtifact C:\ProgramData\MiKTeX\2.9\miktex\log\initexmf_admin.log
Hı all. Thank you for this community. I want use odoo for my job. but I'm so tired, I'm on the verge of giving up from odoo.
I would be very grateful if you help.
After installation, I can get once localhost8069 . And creating database.
ANd ı take create database error.
Database creation error: "invalid byte sequence for encoding "UTF8": 0xff " while parsing /usr/lib/python2.7/dist-packages/openerp/addons/base/base_data.xml:55, near <span>--<br/> Administrator</span>
After this error ı take always 500 internal server error. I can not see login interface anymore. I just see 500 internal server error.
6 days I'm working and I could not reach a solution. I used ubuntu and pardus ( some kind debian) . And the results did not change.
But when ı used w7 ı succeed. I was able to get odoo. But ı want use odoo in linux not windows.
I guess this error about database. But ı didnt find source about confıgure postgresql for odoo. Can you help me pls ?
This is my steps for installions of odoo after fresh ubuntu :
1-)
wget -O - nightly.odoo.com/odoo.key | apt-key add -
echo "deb nightly.odoo.com/9.0/nightly/deb/ ./" >> /etc/apt/sources.list
apt-get update && apt-get install odoo
2-) and go : http://localhost:8069
Log file : ı erased log file and restart odoo server and try few time localhost:8069 again :
And this is end of new fresh log file :
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1554, in setup_db
httprequest.session.db = db_monodb(httprequest)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1701, in db_monodb
dbs = db_list(True, httprequest)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1675, in db_list
dbs = openerp.service.db.list_dbs(force)
File "/usr/lib/python2.7/dist-packages/openerp/service/db.py", line 323, in list_dbs
with closing(db.cursor()) as cr:
File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 630, in cursor
return Cursor(self.pool, self.dbname, self.dsn, serialized=serialized)
File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 164, in __init
self._cnx = pool.borrow(dsn)
File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 513, in _locked
return fun(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 581, in borrow
**connection_info)
File "/usr/lib/python2.7/dist-packages/psycopg2/init.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: fe_sendauth: no password supplied
Let's try with the first solution:
Make sure the permission is correct for postgres engine by giving the correct one as the following:
sudo chown -R postgres:postgres /var/run/postgresql (default directory)
Plus, make sure the port 8069 is open.
I finally found a solution. The problem is very simple. This problem is caused by using debian, which is not English. The English debian worked without error.
As a result, we always use the operating system in English.
try this command: ps -A
check for postgresql & odoo proccess and kill them all
do it for few times
if you are using VMware like me restart it
hope that answer your question
So I followed [the guide][1] on how to set up a simple mail filter with Postfix, so that I can do a find-replace in the body of outgoing emails. I created a script at /tmp/mailfilter.sh, and changed the /etc/postfix/master.cf file as instructed
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
-o content_filter=filter:dummy
filter unix - n n - 10 pipe
flags=Rq user=filter null_sender=
argv=/tmp/mailfilter.sh -f ${sender} -- ${recipient}
I created a user called filter and made it the owner of the script. But when I tried sending an email, I get the following error:
Jun 7 03:01:53 localhost postfix/qmgr[31288]: 134D944A0673: from=<sender#gmail.com>, size=894, nrcpt=1 (queue active)
Jun 7 03:01:53 localhost pipe[31603]: fatal: pipe_command: execvp /tmp/mailfilter.sh: Permission denied
Jun 7 03:01:53 localhost postfix/pipe[31562]: 134D944A0673: to=<receiver#gmail.com>, relay=filter, delay=8974, delays=8974/0/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /tmp/mailfilter.sh: Permission denied )
Specifically what I'm assuming is relevant is
(temporary failure. Command output: pipe: fatal: pipe_command: execvp /tmp/mailfilter.sh: Permission denied )
/tmp/mailfilter.sh has chmod a+x and is owned by filter. I tried removing everything in it so it's just an empty file, and I still get the permission denied error.
I can't figure out what I'm missing. I've set every permission I can find, but Postfix is doing something arcane that I don't understand.
CentOS uses SELinux as a MAC framework, so maybe you need to set properly the type of your executable. You can check in /var/log/audit/audit.log for any security violation. If SELinux is denying you, you can try this command as root:
chcon -t postfix_pipe_exec_t /tmp/mailfilter.sh
That manual is a good reference: http://linux.die.net/man/8/postfix_selinux
I am doing an iphone app, were my code works fine with out any error, but when i build the code its failing. and i am getting an error like
rsync: rename "/Users/pcmac/Desktop/Digidrive(IPhone)/Build/RestKit/Support/.svn/.format.0FKOPh" -> "RestKit/Support/.svn/format": Operation not permitted (1)
I am getting this error many at a time and finally says:
Command /bin/sh failed with exit code 23
Can anyone give me solution to solve this ?
It seems you've added RestKit via Subversion (SVN). Is this really what you want? Why not get this dependency from CocoaPods or donwload it from RestKit.org as a source package?
I'd suspect the file permissions on .svn/.format.OFKOPh; to check them:
open a terminal window
change to the .svn dir:
cd /Users/pcmac/Desktop/Digidrive(IPhone)/Build/RestKit/Support/.svn/
check permissions:
ls -la .format*
if the permissions are wrong (i.e. you are not allowed to move the file):
chmod 644 .format.OFKOPh
I am getting a linking error when I try to archive my app. The brief description of the error is
`Command /usr/sbin/chown failed with exit code 1`
The detailed description is
SetOwnerAndGroup "r499908:US-ADdomain" users /Users/r499908/Library/Developer/Xcode/DerivedData/W-akvlnuynzzkjqwcmnnsmrpjpgqfs/ArchiveIntermediates/Advisor/InstallationBuildProductsLocation/Applications/W.app
cd /Users/r499908/Desktop/Projects/JPMorganFunds-Advisor-1.4
setenv PATH "/xcode4-gm/Platforms/iPhoneOS.platform/Developer/usr/bin:/xcode4-gm/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/sbin/chown -RH "r499908:US-AD\\domain users" /Users/r499908/Library/Developer/Xcode/DerivedData/W-akvlnuynzzkjqwcmnnsmrpjpgqfs/ArchiveIntermediates/Advisor/InstallationBuildProductsLocation/Applications/W.app
chown: US-AD\domain users: Invalid argument
Command /usr/sbin/chown failed with exit code 1
Is this because US-AD\domain has a backslash as opposed to front slash? If yes how do I correct this?
The problem was the backslash.
Solved by searching for US-AD\ and changing that to admin
changing install group to admin worked for me