Sponsored Content
Operating Systems Linux Ubuntu Newbie, Directories permissions Post 302188045 by sypherz on Tuesday 22nd of April 2008 02:14:35 PM
Old 04-22-2008
era, that was perfect, thank you very much Smilie works great

For anyone reading this post regarding the same thing make sure you dont control C out of the terminal until after you have saved the file you are editing Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

newbie needing help with upper level directories

What is the purpose (function) of the following upper level directories: - /bin /dev /etc /home /mnt /media /sbin /tmp /var I have encountered these, but as i said, i am new to unix and i am not quite sure what they are and what their fucntions are. Any help would be greatly... (2 Replies)
Discussion started by: carlvernon
2 Replies

2. UNIX for Dummies Questions & Answers

Permissions for Directories and Subdirectories

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

3. UNIX for Dummies Questions & Answers

Unix permissions for a newbie

Okay, this may turn out to be something quite simple, but I haven't found the answer so far: 1) Is it possible to retrieve a list of user(ID) file permissions? and then... 2) What is the most efficient way to create an alert/error message when/if those file permissions are denied? ... (2 Replies)
Discussion started by: hades1013
2 Replies

4. UNIX for Dummies Questions & Answers

how to change permissions only to files, not directories....?

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

Newbie: How to loop round sub-directories

I want a bit of shell script that will let me loop round all the sub-directories in a directory (i.e. ignoring any ordinary files in that directory). Let's say I just want to echo the names of the sub-directories. This sounds like it should be pretty easy - but not for me, it isn't! All help... (4 Replies)
Discussion started by: cjhancock
4 Replies

6. Shell Programming and Scripting

Create duplicate directories with same permissions

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

7. Shell Programming and Scripting

Find only files/directories with different permissions/owners

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

8. Shell Programming and Scripting

Script to change Permissions on files and directories

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

9. AIX

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... (1 Reply)
Discussion started by: aaron8667
1 Replies

10. Shell Programming and Scripting

Find comand directories permissions

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
NL_LANGINFO(3)								 1							    NL_LANGINFO(3)

nl_langinfo - Query language and locale information

SYNOPSIS
string nl_langinfo (int $item) DESCRIPTION
nl_langinfo(3) is used to access individual elements of the locale categories. Unlike localeconv(3), which returns all of the elements, nl_langinfo(3) allows you to select any specific element. PARAMETERS
o $item -$item may be an integer value of the element or the constant name of the element. The following is a list of constant names for $item that may be used and their description. Some of these constants may not be defined or hold no value for certain locales. nl_langinfo Constants +-------------------------------+---------------------------------------------------+ | Constant | | | | | | | Description | | | | +-------------------------------+---------------------------------------------------+ | | | | LC_TIME Category Constants | | | | | | | | | ABDAY_(1-7) | | | | | | | Abbreviated name of n-th day of the week. | | | | | | | | DAY_(1-7) | | | | | | | Name of the n-th day of the week (DAY_1 = Sun- | | | day). | | | | | | | | ABMON_(1-12) | | | | | | | Abbreviated name of the n-th month of the year. | | | | | | | | MON_(1-12) | | | | | | | Name of the n-th month of the year. | | | | | | | | AM_STR | | | | | | | String for Ante meridian. | | | | | | | | PM_STR | | | | | | | String for Post meridian. | | | | | | | | D_T_FMT | | | | | | | String that can be used as the format string for | | | strftime(3) to represent time and date. | | | | | | | | D_FMT | | | | | | | String that can be used as the format string for | | | strftime(3) to represent date. | | | | | | | | T_FMT | | | | | | | String that can be used as the format string for | | | strftime(3) to represent time. | | | | | | | | T_FMT_AMPM | | | | | | | String that can be used as the format string for | | | strftime(3) to represent time in 12-hour format | | | with ante/post meridian. | | | | | | | | ERA | | | | | | | Alternate era. | | | | | | | | ERA_YEAR | | | | | | | Year in alternate era format. | | | | | | | | ERA_D_T_FMT | | | | | | | Date and time in alternate era format (string can | | | be used in strftime(3)). | | | | | | | | ERA_D_FMT | | | | | | | Date in alternate era format (string can be used | | | in strftime(3)). | | | | | | | | ERA_T_FMT | | | | | | | Time in alternate era format (string can be used | | | in strftime(3)). | | | | | | | |LC_MONETARY Category Constants | | | | | | | | | INT_CURR_SYMBOL | | | | | | | International currency symbol. | | | | | | | | CURRENCY_SYMBOL | | | | | | | Local currency symbol. | | | | | | | | CRNCYSTR | | | | | | | Same value as CURRENCY_SYMBOL. | | | | | | | | MON_DECIMAL_POINT | | | | | | | Decimal point character. | | | | | | | | MON_THOUSANDS_SEP | | | | | | | Thousands separator (groups of three digits). | | | | | | | | MON_GROUPING | | | | | | | Like "grouping" element. | | | | | | | | POSITIVE_SIGN | | | | | | | Sign for positive values. | | | | | | | | NEGATIVE_SIGN | | | | | | | Sign for negative values. | | | | | | | | INT_FRAC_DIGITS | | | | | | | International fractional digits. | | | | | | | | FRAC_DIGITS | | | | | | | Local fractional digits. | | | | | | | | P_CS_PRECEDES | | | | | | | Returns 1 if CURRENCY_SYMBOL precedes a positive | | | value. | | | | | | | | P_SEP_BY_SPACE | | | | | | | Returns 1 if a space separates CURRENCY_SYMBOL | | | from a positive value. | | | | | | | | N_CS_PRECEDES | | | | | | | Returns 1 if CURRENCY_SYMBOL precedes a negative | | | value. | | | | | | | | N_SEP_BY_SPACE | | | | | | | Returns 1 if a space separates CURRENCY_SYMBOL | | | from a negative value. | | | | | | | | P_SIGN_POSN | | | | | | | | | | | | | o Returns 0 if parentheses | | | surround the quantity and | | | CURRENCY_SYMBOL. | | | | | | o Returns 1 if the sign | | | string precedes the quantity | | | and | | | CURRENCY_SYMBOL. | | | | | | o Returns 2 if the sign | | | string follows the quantity | | | and | | | CURRENCY_SYMBOL. | | | | | | o Returns 3 if the sign | | | string immediately precedes | | | the | | | CURRENCY_SYMBOL. | | | | | | o Returns 4 if the sign | | | string immediately follows | | | the | | | CURRENCY_SYMBOL. | | | | | | | | N_SIGN_POSN | | | | | | | | |LC_NUMERIC Category Constants | | | | | | | | | DECIMAL_POINT | | | | | | | Decimal point character. | | | | | | | | RADIXCHAR | | | | | | | Same value as DECIMAL_POINT. | | | | | | | | THOUSANDS_SEP | | | | | | | Separator character for thousands (groups of | | | three digits). | | | | | | | | THOUSEP | | | | | | | Same value as THOUSANDS_SEP. | | | | | | | | GROUPING | | | | | | | | | | T{ | | | | | | LC_MESSAGES Category Constants | | | | | | | | YESEXPR | | | | | | | Regex string for matching "yes" input. | | | | | | | | NOEXPR | | | | | | | Regex string for matching "no" input. | | | | | | | | YESSTR | | | | | | | Output string for "yes". | | | | | | | | NOSTR | | | | | | | Output string for "no". | | | | | | | | LC_CTYPE Category Constants | | | | | | | | | CODESET | | | | | | | Return a string with the name of the character | | | encoding. | | | | +-------------------------------+---------------------------------------------------+ RETURN VALUES
Returns the element as a string, or FALSE if $item is not valid. NOTES
Note This function is not implemented on Windows platforms. SEE ALSO
setlocale(3), localeconv(3). PHP Documentation Group NL_LANGINFO(3)
All times are GMT -4. The time now is 09:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy