03-27-2015
Permissions on directories and files
Hello,
I have a main directory called /test123
/test123 has lot of sub-directories and files.
drwxr-x--- 21 root system 4096 Jan 25 10:20 /test123
Here, "other" does not have any access to /test123 folder.
How can we provide read-only access to others on /test123 content ?
I understand that all directories and sub-directories need "x" permission as well
If I run chmod -R o+r /test123, directories wont get "x" permission.
I want to get read and execute on directories/sub-directories and Read only on files for others. please explain.
Last edited by rbatte1; 04-07-2015 at 11:58 AM..
Reason: Spelling, capital letters and highlighting for clarity
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is it possible to have a directory owned (by root) with permissions drwx------
and then have a sub directory of rwxrwxrwx.
I know that this may be soo simple but I had no luck googling it.
Thanks for your help (1 Reply)
Discussion started by: clancymf
1 Replies
2. Shell Programming and Scripting
Hi All
I need to create a script which would change Permissions to 775
All the Files and directories will be mentioned in the Paramter files
Can anyone give a Hint how to proceed in this ??
THanks (1 Reply)
Discussion started by: ranga27
1 Replies
3. Ubuntu
Basicly im trying to edit a file for apache2 in /var/etc/apache2 and i dont have permissions, my login name is associated with root but i still can't do anything, Does anyone have any ideas?
Thanks in advance! (3 Replies)
Discussion started by: sypherz
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am really new to unix, any help is much appreciated.
I need to change permissions of all files under several subdirectories to 700 but keep directories readable (755). Why ? Because I need a FTP user to only list his files and can't read them. But to browse to subfolder, the directories... (3 Replies)
Discussion started by: narrok
3 Replies
5. Shell Programming and Scripting
Hi all,
I need to create duplicate directories and sub directories (only the directories not the files or file contents) with the same permissions. Can some one guide me in doing this. I could able to create but here the permissions should be the same how can i do this in linux.
Thanks in... (5 Replies)
Discussion started by: Olivia
5 Replies
6. Linux
Hi,
I am working on setup a environment where only a specific user can upload the builds on htdocs of apache.
Now i want that a specific user can copy the builds on htdocs folder.
I created a group "deploy" and assign user1 and user2 to this group.
On Apache side i mentioned User=deploy... (3 Replies)
Discussion started by: sunnysthakur
3 Replies
7. Shell Programming and Scripting
Hello All,
I am in the process of finding the permissions on all the files that exists in two directories:
Dir1: PROD_Scripts/*
Dir2: STAGE_Scripts/*
Both the Directories have some shell and perl scripts respectively.
Step1: Finding all the Scripts that exists in PROD but Not in STAGE.... (2 Replies)
Discussion started by: filter
2 Replies
8. Shell Programming and Scripting
My git post-update has the following lines in it to make sure the permissions are set right:
find /usr/local/apache/htdocs -type d -print0 | xargs -0 chmod 755
find /usr/local/apache/htdocs -type f -print0 | xargs -0 chmod 644
chown -R apache:apache /usr/local/apache/htdocsThe only problem is... (5 Replies)
Discussion started by: dheian
5 Replies
9. Shell Programming and Scripting
Hey, It's me again.
Have a problem, that's not really a problem. I have the below script, that goes to the directory I want it to go to. lists out the directories available, lets you choose the directory you want, then it changes the permissions on said directory. using chmod -R and chown -R.
... (2 Replies)
Discussion started by: gkelly1117
2 Replies
10. Shell Programming and Scripting
Hi,
In the code below, while the "xarsg" command does not search in
"tavi_valo" subdir?
IAB00201:UG02222:EXPL> ls -1|xargs -IXX find XX -name tv_va_servbonos 2>/dev/null
UG02222/fuentes/TAVA/TAVA4E0000/backup/tv_va_servbonos... (2 Replies)
Discussion started by: Jose Luis
2 Replies
LEARN ABOUT DEBIAN
mysqlserverclone
MYSQLSERVERCLONE(1) MySQL Utilities MYSQLSERVERCLONE(1)
NAME
mysqlserverclone - Start a new instance of an existing MySQL server
SYNOPSIS
mysqlserverclone [options]
DESCRIPTION
This utility permits an administrator to clone an existing MySQL server instance to start a new server instance on the same host. The
utility creates a new datadir (--new-data), and starts the server with a socket file. You can optionally add a password for the login user
account on the new instance.
OPTIONS
mysqlserverclone accepts the following command-line options:
--help Display a help message and exit.
--mysqld=<options>
Additional options for mysqld. To specify multiple options, separate them by spaces. Use appropriate quoting as necessary. For exam-
ple, to specify --log-bin=binlog and --general-log-file="my log file", use:
--mysqld="--log-bin=binlog --general-log-file='my log file'"
--new-data=<path_to_new_datadir>
The full path name of the location of the data directory for the new server instance. If the directory does not exist, the utility
will create it.
--new-id=<server_id>
The server_id value for the new server instance. The default is 2.
--new-port=<port>
The port number for the new server instance. The default is 3307.
--quiet, -q
Turn off all messages for quiet execution.
--root-password=<password>
The password for the root user of the new server instance.
--server=<source>
Connection information for the server to be cloned in <user>[:<passwd>]@<host>[:<port>][:<socket>] format.
--verbose, -v
Specify how much information to display. Use this option multiple times to increase the amount of information. For example, -v =
verbose, -vv = more verbose, -vvv = debug.
--version
Display version information and exit.
--write-command=<file_name>, -w<file_name>
Path name of file in which to write the command used to launch the new server instance.
EXAMPLES
The following command demonstrates how to create a new instance of a running server, set the root user password and enable binary logging:
$ mkdir /source/test123
$ mysqlserverclone --server=root:pass@localhost
--new-data=/Users/cbell/source/test123 --new-port=3310
--root-password=pass --mysqld=--log-bin=mysql-bin
# Cloning the MySQL server running on localhost.
# Creating new data directory...
# Configuring new instance...
# Locating mysql tools...
# Setting up empty database and mysql tables...
# Starting new instance of the server...
# Testing connection to new instance...
# Success!
# Setting the root password...
# ...done.
COPYRIGHT
Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
AUTHOR
MySQL Utilities Team
COPYRIGHT
2010, Oracle and/or its affiliates. All rights reserved.
1.0.3 May 09, 2012 MYSQLSERVERCLONE(1)