I have a central repository and 3 users with local repositories that pull and push code to the central one.
I have a defined user hg and a group called hgusers to which all the 3 users belong to.
Every time a user pushes code, some directories and files get their owner and group changed from hg and hgusers to userName and userGroup respectively which makes impossible to the others to push code.So, I have to do chown and chgrp to go back to the initial situation again.
Here is the desirable situation, regarding user and group:
drwxrwxr-x 3 hg hgusers 4.0K 2010-09-23 08:06 .
drwxrwxr-x 3 hg hgusers 4.0K 2010-07-29 19:06 ..
-rw-rw-r-- 2 hg hgusers 57 2010-07-21 10:08 00changelog.i
-rw-rw-r-- 1 hg hgusers 94 2010-09-23 08:06 branchheads.cache
-rw-rw-r-- 2 hg hgusers 23 2010-07-21 10:08 requires
drwxrwxr-x 3 hg hgusers 4.0K 2010-09-23 08:06 store
-rw-rw-r-- 1 hg hgusers 7 2010-09-23 08:06 undo.branch
-rw-rw-r-- 1 hg hgusers 0 2010-09-23 08:06 undo.dirstate
Here is what I get when the user1 (group1) pushes code:
drwxrwxr-x 3 hg hgusers 4.0K 2010-09-22 16:58 .
drwxrwxr-x 3 hg hgusers 4.0K 2010-07-29 19:06 ..
-rw-rw-r-- 2 hg hgusers 57 2010-07-21 10:08 00changelog.i
-rw-rw-r-- 1 user1 group1 94 2010-09-21 16:38 branchheads.cache
-rw-rw-r-- 1 user1 group1 7 2010-09-22 16:58 journal.branch
-rw-rw-r-- 1 user1 group1 0 2010-09-22 16:58 journal.dirstate
-rw-rw-r-- 2 hg hgusers 23 2010-07-21 10:08 requires
drwxrwxr-x 3 hg hgusers 4.0K 2010-09-22 16:58 store
-rw-rw-r-- 1 user1 group1 7 2010-09-21 16:38 undo.branch
-rw-rw-r-- 1 user1 group1 0 2010-09-21 16:38 undo.dirstate
There is probably something with the bit S.
Any suggestions? thanks.
You need to add the +S bit to every directory starting at .hg and below.
See MultipleCommitters for details.
Related
Mysql on mac is generating a lot of relay log files, but no replication is actually running. So why? How to delete them?
mysql> SHOW SLAVE STATUS ;
Empty set, 1 warning (0.01 sec)
ls data/
...
-rw-r----- 1 _mysql _mysql 156 27 Jan 09:36 my-mac-relay-bin.000117
-rw-r----- 1 _mysql _mysql 156 27 Jan 11:41 my-mac-relay-bin.000118
-rw-r----- 1 _mysql _mysql 179 27 Jan 23:04 my-mac-relay-bin.000119
-rw-r----- 1 _mysql _mysql 156 28 Jan 09:25 my-mac-relay-bin.000120
-rw-r----- 1 _mysql _mysql 156 28 Jan 12:36 my-mac-relay-bin.000121
-rw-r----- 1 _mysql _mysql 156 29 Jan 18:57 my-mac-relay-bin.000122
-rw-r----- 1 _mysql _mysql 179 29 Jan 22:34 my-mac-relay-bin.000123
-rw-r----- 1 _mysql _mysql 179 30 Jan 22:28 my-mac-relay-bin.000124
...
I have installed the MySQL-Server with homebrew before on another User on my Macbook Pro, but I must change the User and now I can't start the MySQL server:
$ mysql.server start
Starting MySQL
./usr/local/Cellar/mysql/5.7.22/bin/mysqld_safe: line 144:
/usr/local/var/mysql/Stefans-MacBook-Pro.local.err: Permission denied
/usr/local/Cellar/mysql/5.7.22/bin/mysqld_safe: line 144:
/usr/local/var/mysql/Stefans-MacBook-Pro.local.err: Permission denied
/usr/local/Cellar/mysql/5.7.22/bin/mysqld_safe: line 198:
/usr/local/var/mysql/Stefans-MacBook-Pro.local.err: Permission denied
/usr/local/Cellar/mysql/5.7.22/bin/mysqld_safe: line 144:
/usr/local/var/mysql/Stefans-MacBook-Pro.local.err: Permission denied
ERROR! The server quit without updating PID file
(/usr/local/var/mysql/Stefans-MacBook-Pro.local.pid).
The User "Stefan" doesn't exist anymore. Maybe the rights on /usr/local/var/mysql are not correct, but I am unsure about what I can do to fix it.
The rights are:
$ sudo ls -lah /usr/local/var/mysql/
Password:
total 221392
drwxr-xr-x 20 501 admin 640B 25 Apr 15:47 .
drwxrwxr-x 8 501 admin 256B 20 Apr 10:12 ..
-rw-r----- 1 501 admin 60K 25 Apr 15:47 Stefans-MacBook-Pro.local.err
-rw-r----- 1 501 admin 56B 20 Apr 10:12 auto.cnf
-rw------- 1 501 admin 1,6K 20 Apr 10:12 ca-key.pem
-rw-r--r-- 1 501 admin 1,1K 20 Apr 10:12 ca.pem
-rw-r--r-- 1 501 admin 1,1K 20 Apr 10:12 client-cert.pem
-rw------- 1 501 admin 1,6K 20 Apr 10:12 client-key.pem
-rw-r----- 1 501 admin 464B 25 Apr 15:47 ib_buffer_pool
-rw-r----- 1 501 admin 48M 25 Apr 15:47 ib_logfile0
-rw-r----- 1 501 admin 48M 20 Apr 10:12 ib_logfile1
-rw-r----- 1 501 admin 12M 25 Apr 15:47 ibdata1
drwxr-x--- 77 501 admin 2,4K 20 Apr 10:12 mysql
drwxr-x--- 90 501 admin 2,8K 20 Apr 10:12 performance_schema
-rw------- 1 501 admin 1,6K 20 Apr 10:12 private_key.pem
-rw-r--r-- 1 501 admin 452B 20 Apr 10:12 public_key.pem
-rw-r--r-- 1 501 admin 1,1K 20 Apr 10:12 server-cert.pem
-rw------- 1 501 admin 1,6K 20 Apr 10:12 server-key.pem
drwxr-x--- 108 501 admin 3,4K 20 Apr 10:12 sys
drwxr-x--- 25 501 admin 800B 20 Apr 12:00 textspinner
I have also tried to reinstall MySQL server but it doesn't work.
How can I fix this?
Ok, with this post i could fix this:
https://coderwall.com/p/os6woq/uninstall-all-those-broken-versions-of-mysql-and-re-install-it-with-brew-on-mac-mavericks
I'm installing Dolibarr istance for my company. I installed it with LAMP. Now, on localhost everything works fine and i have the classic interface.
After this. i Build a virtualhost like this, to point the site on erp.varesenext.it
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerAdmin webmaster#localhost
ServerName erp.varesenext.it
ServerAlias www.erp.varesenext.it
DocumentRoot /var/www/html/dolibarr1/
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Then, i fix the /etc/hosts file:
40.71.186.112 erp.varesenext.it
to point that site on my webserver.
All works fine, but when i go to my browser, it shows me only text, without the app inter face...like this
Any help??
This is the folder dolibarr1 inside /var/www/html/dolibarr1
drwxrwxr-x 11 www-data www-data 4096 May 30 08:52 accountancy
drwxrwxr-x 9 www-data www-data 4096 May 30 08:52 adherents
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 admin
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 api
drwxrwxr-x 2 www-data www-data 4096 May 30 08:52 asterisk
drwxrwxr-x 2 www-data www-data 4096 May 30 08:52 barcode
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 bookmarks
drwxrwxr-x 19 www-data www-data 4096 Mar 11 22:40 build
drwxrwxr-x 9 www-data www-data 4096 May 30 08:52 cashdesk
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 categories
-rwxrwxr-x 1 www-data www-data 213138 Feb 2 01:24 ChangeLog
drwxrwxr-x 7 www-data www-data 4096 May 30 08:52 comm
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 commande
-rwxrwxr-x 1 www-data www-data 2072 Jan 24 13:32 composer.json
-rwxrwxr-x 1 www-data www-data 63478 Jan 24 13:32 composer.lock
drwxrwxr-x 16 www-data www-data 4096 May 30 08:52 compta
drwxrwxr-x 2 www-data www-data 4096 May 30 10:09 conf
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 contact
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 contrat
-rwxrwxr-x 1 www-data www-data 35147 Jan 24 13:32 COPYING
-rwxrwxr-x 1 www-data www-data 9700 Jan 24 13:32 COPYRIGHT
drwxrwxr-x 14 www-data www-data 4096 May 30 08:52 core
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 cron
drwxrwxr-x 2 www-data www-data 4096 May 30 08:52 custom
drwxrwxr-x 8 www-data www-data 4096 Mar 11 22:35 dev
drwxrwxr-x 5 www-data www-data 4096 Mar 11 22:35 doc
-rwxrwxr-x 1 www-data www-data 610 Jan 24 13:32 Dockerfile
-rwxrwxr-x 1 www-data www-data 6359 May 30 09:44 document.php
drwxrwxr-x 14 www-data www-data 4096 May 30 11:07 documents
drwxrwxr-x 7 www-data www-data 4096 Jan 24 17:47 dolibarr-4.0.4
drwxrwxr-x 6 www-data www-data 4096 May 30 08:52 don
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 ecm
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 expedition
drwxrwxr-x 7 www-data www-data 4096 May 30 08:52 expensereport
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 exports
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 externalsite
-rwxrwxr-x 1 www-data www-data 2238 May 30 09:44 favicon.ico
drwxrwxr-x 6 www-data www-data 4096 May 30 08:52 fichinter
-rwxrwxr-x 1 www-data www-data 17147 May 30 09:44 filefunc.inc.php
drwxrwxr-x 9 www-data www-data 4096 May 30 08:52 fourn
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 ftp
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 holiday
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 hrm
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 imports
drwxrwxr-x 26 www-data www-data 4096 May 30 08:52 includes
-rwxrwxr-x 1 www-data www-data 26543 May 30 09:44 index.php
drwxrwxr-x 7 www-data www-data 4096 May 30 08:52 install
-rwxrwxr-x 1 www-data www-data 91 Jan 24 13:32 INSTALL
drwxrwxr-x 83 www-data www-data 4096 May 30 08:52 langs
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 livraison
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 loan
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 mailmanspip
-rwxrwxr-x 1 www-data www-data 97173 May 30 09:44 main.inc.php
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 margin
-rwxrwxr-x 1 www-data www-data 11689 May 30 09:44 master.inc.php
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 multicurrency
drwxrwxr-x 6 www-data www-data 4096 May 30 08:52 opensurvey
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 paybox
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 paypal
drwxrwxr-x 4 www-data www-data 4096 May 30 08:52 printing
drwxrwxr-x 10 www-data www-data 4096 May 30 08:52 product
drwxrwxr-x 8 www-data www-data 4096 May 30 08:52 projet
drwxrwxr-x 13 www-data www-data 4096 May 30 08:52 public
-rwxrwxr-x 1 www-data www-data 6086 Jan 24 13:32 README-FR.md
-rwxrwxr-x 1 www-data www-data 6953 Mar 7 14:46 README.md
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 resource
-rwxrwxr-x 1 www-data www-data 115 May 30 09:44 robots.txt
drwxrwxr-x 15 www-data www-data 4096 Jun 5 2015 scripts
drwxrwxr-x 9 www-data www-data 4096 May 30 08:52 societe
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 supplier_proposal
drwxrwxr-x 2 www-data www-data 4096 May 30 08:52 support
drwxrwxr-x 5 www-data www-data 4096 May 30 08:52 theme
drwxrwxr-x 6 www-data www-data 4096 May 30 08:52 user
-rwxrwxr-x 1 www-data www-data 6936 May 30 09:44 viewimage.php
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 webservices
drwxrwxr-x 3 www-data www-data 4096 May 30 08:52 websites
One of our MySQL servers died but somehow we were able to recover all the files from it. This server was a slave at one time however we stopped it being a slave so we could use it for housekeeping tasks and reports, etc.
Can someone tell me how to recover with this?
I now have these files and a backup of my.cnf
ll /root/home/recovered/mysql/
-rw-r----- 1 root root 117 Jun 1 09:30 rabney-relay-bin.000001
-rw-r----- 1 root root 26 Jun 1 09:30 rabney-relay-bin.index
-rw-r----- 1 root root 113055367168 Jun 1 10:42 ibdata1
-rw-r----- 1 root root 1073741824 Jun 1 09:33 ib_logfile0
-rw-r----- 1 root root 1073741824 Jun 1 09:33 ib_logfile1
drwx------ 2 root root 4096 Jun 1 09:30 mysql
drwx------ 2 root root 16384 Jun 1 09:30 production_copy
-rw-r----- 1 root root 3253518648 Jun 1 09:32 slowquery.log
drwx------ 2 root root 4096 Jun 1 09:30 test
I've been reading articles on Google regarding this but not sure how to do it yet.
I have a fresh install of MediaWiki setup. I have installed the Bootstrap Skin however it doesn't seem to be rendering anything out.
This is the path to my skins directory
/var/www/wiki/skins
Inside this I have the following
4 drwxrwxrwx 4 root root 4096 2015-07-30 15:33 CologneBlue
4 drwxrwxrwx 7 root root 4096 2015-07-31 10:36 mediawiki-bootstrap
4 drwxrwxrwx 4 root root 4096 2015-07-30 15:33 Modern
4 drwxrwxrwx 3 root root 4096 2015-07-30 15:33 MonoBook
4 -rwxrwxrwx 1 root root 1288 2015-07-30 15:33 README
4 drwxrwxrwx 6 root root 4096 2015-07-30 15:33 Vector
Inside the mediawiki-bootstap folder is the following
4 drwxrwxrwx 2 root root 4096 2015-07-31 10:36 assets
4 drwxrwxrwx 7 root root 4096 2015-07-31 10:37 bootstrap
4 -rwxrwxrwx 1 root root 524 2015-07-31 10:36 Bootstrap.i18n.php
4 -rwxrwxrwx 1 root root 2271 2015-07-31 10:36 bootstrap.php
12 -rwxrwxrwx 1 root root 9274 2015-07-31 10:36 Bootstrap.renderer.php
4 -rwxrwxrwx 1 root root 3751 2015-07-31 10:36 Bootstrap.skin.php
4 -rwxrwxrwx 1 root root 759 2015-07-31 10:36 DOMDebugPrinter.php
4 drwxrwxrwx 8 root root 4096 2015-07-31 10:37 Font-Awesome
20 -rwxrwxrwx 1 root root 18092 2015-07-31 10:36 LICENSE.txt
8 -rwxrwxrwx 1 root root 5131 2015-07-31 10:36 README.md
4 drwxrwxrwx 2 root root 4096 2015-07-31 10:36 xsl
I have added the following to my LocalSettings.php file located in the wiki folder
require_once( "/var/www/wiki/skins/mediawiki-bootstrap/bootstrap.php");
$wgDefaultSkin = "bootstrap";
#$wgDefaultSkin = "modern";
When I change back to modern, the styling and CSS loads fine. When I move to bootstrap the page loads with no styling/formatting.
I was wondering if anybody had any suggestion why this is not working for me.
Thanks