11-01-2008
Hope this helps.
find /dir -type f -maxdepth 1 -exec chmod 444 {} \;
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello!
At present, my .js files are also within the public_html directory.
Anyone is able to type the name of these files in their browser
address bar and then be presented the javascript (or text) code.
What numeric CHMOD should be applied to these, which: Permit
the world and group to... (3 Replies)
Discussion started by: Texan
3 Replies
2. UNIX for Dummies Questions & Answers
hello! is there a way for me to use the chmod command to change permissions for several files all at once -based on the fact that these files were all most recently modified TODAY ?
I can't use a wildcard on their filenames because the filenames are varied. But I was hoping I could somehow do... (2 Replies)
Discussion started by: polka_friend
2 Replies
3. UNIX for Dummies Questions & Answers
Is there a way to specify 774 permissions for a file uploaded to an app server via ftp without the users logging in and doing a chmod on the file they just put? I understand they were doing this with an old shared account, and it was working. When they started using their own accounts it stopped... (1 Reply)
Discussion started by: jgentile
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
OS - Unix, linux (all unix flavors)
My requirement. To check directory/file exists and then change the permission of the directories/files.
Iam trying to start with directory and here is my code in the file totalchange.sh (insideragain - is a directory, test1.txt - is a file under the... (2 Replies)
Discussion started by: kenkanya
2 Replies
5. Shell Programming and Scripting
So i have about 600gb of data.. in which there are alot of directories and alot of files.. Im trying to put this on a ftp server.. So i want to set the permissions on the directories to be 755 and the permission on the files to be 644. So i used:
find . -type d -exec chmod 755 {}\;
and
find .... (6 Replies)
Discussion started by: supermiguel
6 Replies
6. Shell Programming and Scripting
Hi all,
I have a script who generate as an output a lot of files (the number is highly variable : 500 to more than 10000).
At the end of this script I need to do a "chmod" on all those files. I tried
but it says
-bash: /bin/chmod: Argument list too long
So it seems that chmod can't... (9 Replies)
Discussion started by: Moumou
9 Replies
7. Shell Programming and Scripting
I have a folder that contains about 690k files and I need to change their permissions. The challenge is, I have no telnet access and the GUI FTP manager via cpanel just simply fails. I tried doing it via command line ftp but that too, fails saying 'no such file or directory'.
My last resort is... (11 Replies)
Discussion started by: designflaw
11 Replies
8. UNIX and Linux Applications
i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies
9. UNIX for Dummies Questions & Answers
I am looking for a small script to crawl through several directories and change a couple of files in each directory to read write status.
Anyone have any ideas ? (5 Replies)
Discussion started by: zapper222
5 Replies
10. Shell Programming and Scripting
Hi,
I have a list of files in a text file. I want to change the mode of every one of those files, but am having difficulty in doing so.
#!/bin/bash
files=/home/david/files.txt
for $item in $files {
chmod 640 $item
}
.. doesn't cut it.
Can anyone help?
Thanks. (7 Replies)
Discussion started by: davidm123SED
7 Replies
LEARN ABOUT OPENSOLARIS
libgcrypt-config
libgcrypt-config(1) User Commands libgcrypt-config(1)
NAME
libgcrypt-config - helper script for building with libgcrypt
SYNOPSIS
libgcrypt-config [--version] [--prefix=dir] [--cflags] [--libs] [--exec-prefix=dir] [--api-version] [--algorithms]
DESCRIPTION
The libgcrypt-config tool is used to determine the compiler and linker flags that should be used to compile and link programs that use the
libgcrypt library.
OPTIONS
The following options are supported:
--cflags Print the compiler flags that are necessary to compile a program using the specified library.
--exec-prefix=dir If specified, use dir instead of the exec installation prefix that the library was built with, when computing the
output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options.
--libs Print the linker flags that are necessary to link with the specified library.
--prefix=dir If specified, use dir instead of the installation prefix that the library was built with, when computing the output
for the --cflags and --libs options. This option must be specified before any --libs or --cflags options. This
option is also used for the exec prefix if the --exec-prefix option is not specified.
--version Print the currently installed version of the library on the standard output.
--api-version Print the currently installed version of the api on the standard output.
--algorithms Print the currently installed algorithms the library contains on the standard output.
EXAMPLES
Example 1: Getting the libgcrypt library version
example% libgcrypt-config --version
Example 2: Determining the libraries required to link with the libgcrypt library
example% libgcrypt-config --libs
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/libgcrypt-config Executable for libgcrypt helper script
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWlibgcrypt-devel |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO
libgcrypt(3), pkg-config(1), attributes(5)
Written by Jeff Cai, Sun Microsystems Inc., 2008.
SunOS 5.11 10 Jan 2008 libgcrypt-config(1)