MacOS ACL settings - unable to delete Time Machine backup left-over files [closed] - acl

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 days ago.
Improve this question
(MacOS Ventura - MacBook Pro M1)
I have deleted TimeMachine backup file manually!! (my bad). Now I am left with files in my .Trashes folder that I cannot delete, no matter what I tried.
I have enable root user; I have disabled SIP; I have tried chmod -N, chmod -/+a, chmod 777 etc. to no avail... I have read a lot about ACL, extended attributes etc... But couldn't find a solution..
All of the files that I am not able to delete have following ACL:
For ex:
--> sh-3.2# ls -le#ah WebSecurity
--> -rwxr-xr-x# 1 root wheel 222K Aug 15 2019 WebSecurity
--> com.apple.finder.copy.source.checksum#N 4B
--> 0: group:everyone deny write,delete,append,writeattr,writeextattr,chown
Any help will be appreciated a lot :)
I have tried the following on this file:
sh-3.2# chmod -a "group:everyone deny chown" WebSecurity
chmod: Failed to set ACL on file 'WebSecurity': Operation not permitted
sh-3.2# chmod -a "group:everyone deny writeattr" WebSecurity
chmod: Failed to set ACL on file 'WebSecurity': Operation not permitted
sh-3.2# chmod -N WebSecurity
chmod: Failed to clear ACL on file WebSecurity: Operation not permitted
sh-3.2# sudo chmod 777 WebSecurity
chmod: Unable to change file mode on WebSecurity: Operation not permitted

Related

How to write to (/var/lib/mysql-files) with apache? [duplicate]

This question already has answers here:
How to give apache permission to write to home directory?
(5 answers)
Closed 2 years ago.
I get the Permission denied error every time I try to write a file to (/var/lib/mysql-files) directory with http, but if I restart apache and/or MySQL I can write to that directory with no errors, but only one time, so if I try to write a second file I will get that error, and I have to restart apache again and so on.
This is the ownership and the permissions that i gave that directory:
groupadd mysql_apache
usermod -a -G mysql_apache mysql
usermod -a -G mysql_apache apache
chown -R :mysql_apache /var/lib/mysql-files
chmod -R 770 /var/lib/mysql-files
I want to give the rights to read; write; execute on this dir (/var/lib/mysql-files) only to MySQL and apache, What did I do wrong here?
PS: This is on CentOs 8.
We moved to Ubuntu 20.04 since CentOs 8 EOL changed to 2021, and I didn't have this problem in Ubuntu.

MySql ERROR! The server quit without updating PID file [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I inherited a computer that previously had MySql server installed and then uninstalled (apparently, it ran fine before the uninstall). I am in Database class, so I tried to install it again and now I get the error:
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/mysql/data/Computer.local.pid).
I looked online and saw this error happened to others, but either a)I couldn't figure out how to do the fix or b)the fix didnt work for me.
I tried(from http://coolestguidesontheplanet.com/mysql-error-server-quit-without-updating-pid-file/):
Computer:/ computer$ /usr/local/mysql/support-files/mysql.server restart
And I get this error:
ERROR! MySQL server PID file could not be found!
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/mysql/data/Computer.local.pid).
I am not sure what they are telling me to do here:
Remove /etc/my.cnf or just back it up for now and restart:
sudo mv /etc/my.cnf /etc/my.cnf.bak
because I get this error when I type:
Computer:/ computer$ cd /usr/my.cnf
-bash: cd: /usr/my.cnf: No such file or directory
I also see from: mysql ERROR! The server quit without updating PID file?
That there are error logs and the my.cnf file, but I am not sure to access them.
The MySql I downloaded: mysql-5.7.10-osx10.9-x86_64.dmg
I am on a mac version 10.7.5
Thanks!
Mostly this is a permission issue
Step1: Check the error file first.
tail -f /usr/local/mysql/data/*.err
Step2: Do a complete shut down or kill the process. Confirm that no mysql process is running
mysqladmin -uroot shutdown
sudo killall mysqld
ps -ef | grep mysql
Step3: Give permisiions
sudo chown -RL root:mysql /usr/local/mysql
sudo chown -RL mysql:mysql /usr/local/mysql/data
chmod -R 755 /usr/local/mysql/data
Step4: Start mysql
sudo mysql.server start

Where and how to download MySQL source code? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to download MySQL source code. Then i also want to install it and compile it within my computer on Linux environment. How can i do that? Please help me.
There are few good reasons to do this other than applying patches or for learning's sake. If you are installing this on anything other than your personal machine consider using your distribution's package manager. From the docs for these supported platforms:
Before you proceed with an installation from source, check whether Oracle produces a precompiled binary distribution for your platform and whether it works for you. We put a great deal of effort into ensuring that our binaries are built with the best possible options for optimal performance.
Verify that your system satisfies the tool requirements listed at Section 2.8, “Installing MySQL from Source”.
Obtain a distribution file using the instructions in Section 2.1.2, “How to Get MySQL”.
Configure, build, and install the distribution: the exact steps required after installing the correct tools and downloading the source:
.
# Preconfiguration setup
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-build specific instructions
# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server
Perform postinstallation procedures using the instructions in Section 2.9, “Postinstallation Setup and Testing”.
You don't specify OS, so:
How to Build MySQL 5.5 from Source Code on Windows
Detailed instructions for compiling MySQL Server from source code on Linux

Mysql server failing to start [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm newbie in MySQL and I have installed MySQL5.5 Server and Client in my Debian Wheezy. All I did was enter "aptitude install myqsl-server". Now, I have no idea what to do to create my first table of data, I tried to enter with the following command as root(have no idea why I have to do this as root):
/etc/init.d/mysql start
The output was:
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . .
. . failed!
I tried to see what is in the system log in /var/log/ and there is nothing there!
First, I tried to access /var/log/mysql, and this folder is empty, then I tried to read it vim /var/log/mysql.err and /var/log/mysql.log, both are empty too!
So, what is wrong? What is the next steps to create my first table of data?
Check the ownership on the /var/log/mysql and /var/mysqld directories.
ls -ld /var/log/mysql
ls -ld /var/mysqld
According to this thread you may have to change ownership to mysql:
chown mysql:mysql /var/log/mysql
chown mysql:mysql /var/mysqld

MySQL Client Segmentation Fault [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have been attempting to install MySQL 5.1.59 from source for the last couple of days on a Debian server. Every time I run the build process everything appears to go completely smooth(including make test). After completing post install steps I try running the client and get a segmentation fault as seen below. I understand that I could easily install this using apt, but I am determined to build MySQL from source at least once. Any ideas or helpful hints would be greatly appreciated. Thanks ahead of time!
debiantesting-01:/usr/local/mysql# bin/mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.59-log Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Segmentation fault
Here is a complete list of the commands I ran in order.
groupadd mysql
useradd -g mysql mysql
tar -xvf mysql*
cd mysql*
ls
./configure --prefix=/usr/local/mysql --with-extra-charsets=all
make
make test
make install
cd /usr/local/mysql
ls
chown -R mysql .
chgrp -R mysql .
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql var
cp /usr/local/src/mysql*/support-files/my-medium.cnf /etc/my.cnf
/usr/local/mysql/share/mysql/mysql.server start --user=mysql
/usr/local/mysql/bin/mysql_secure_installation
bin/mysql -u root -p
I have tried starting the server with and without the --user flag and it doesn't change the outcome. Also I have tried the command that it says "cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &" and it stays in the foreground and displays:
[1] 31150
debiantesting-01:/usr/local/mysql# 111115 09:37:30 mysqld_safe Logging to '/usr/local/mysql/var/debiantesting-01.err'.
111115 09:37:30 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
After running that the log shows:
111115 10:30:42 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
111115 10:30:42 [Note] Event Scheduler: Loaded 0 events
111115 10:30:42 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.59-log' socket: '/tmp/mysql.sock' port: 3306 Source distribution
If you need anymore information please feel free to ask and thank you very much for your time!
-Josh
After taking the advice of Sjoerd I used gdb to run a backtrace and was able to find a bug report that matched my situation. http://bugs.mysql.com/bug.php?id=58497 is the link. Basically you have to modify the term.c file's lines 904: comment it out and 914: set area equal to NULL.
Example
904: //char buf[TC_BUFSIZE];
914: area = NULL;
Once you have made these changes you should be able to rebuild MySQL.
The file should be located at (MySQL Source Location)/cmd-line-utils/libedit/term.c
otherwise you can use a find / -name "term.c" to find it.
Hope this helps!
-Josh