If you are not sure experiment longhand first, this checks on the fly.
Admittedly it is not AIX but I am sure you can adapt the principle.
OSX 10.7.5, default bash terminal.
Results on above machine...
Hi there
We have had a weird problem arise recently whereby a file owned by cjo:cjogroup suddenly had it's permissions changed to nobody4:nogroup. The file is mounted off a NetApp Filer volume with the NFS permissions set to Read-Write Access (All Hosts) but no Root Access.
When we tried to... (1 Reply)
What I need to do is: I need to use the grep command to search for pattern in directory and sub-directories. And also I need to show the permission of file been seached by the grep command.
Could any one please suggest me?
-----------------
$> cat file1.txt
A
-----------------... (8 Replies)
hello,
I have to write a script to run the other script inside it.So iam planning to write like this?
first check the perimissions of the file.
Alogorthim
----------
if(!filepermissions == execute)
then
echo" Permissions denined"
else
execute the script.
file name is : load_mf.sh... (1 Reply)
Discussion started by: rajkumar_g
1 Replies
4. Post Here to Contact Site Administrators and Moderators
I cannot seem to post within any thread as I require moderator approval. I believe my permissions have been changed and was wondering whats the reason behind this.
Thanks. (3 Replies)
Hi.
I've had a little mishap.
To cut a long story short, I've accidentally recursively ran chown on a directory (actually a bunch of 'em). Not a problem in itself, but I had a slight error in the code I used to get the list of directories and ended up with a comment in the file ownership.
... (15 Replies)
I was installing cygwin on my Windows 7 desktop. I guess I picked a bad mirror site because the download speed was very slow and it wasn't able to give me all the packages I wanted.
I closed the setup in too much haste. I think it was still downloading and not yet installing though. It said that... (1 Reply)
Hi All,
I have to work in the late nights some times for server maintenance and in a hurry to complete I am accidentally changing ownership or permission of directories :(
which have similar names ( /var in root and var of some other directory ).:confused:
Can some one suggest me with the... (1 Reply)
Hi,
For a particular set of files, am trying to check if they are writable. i.e., checking whether they are having permissions greater than 755.
Am able to check this using the statement:
"if (os.path.isfile(FILE_PATH) and (os.stat(FILE_PATH).st_mode & 0777) == 0777):"
But the problem here... (0 Replies)
Hi,
For a particular set of files, am trying to check if they are writable. i.e., checking whether they are having permissions greater than 755.
Am able to check this using the statement:
"if (os.path.isfile(FILE_PATH) and (os.stat(FILE_PATH).st_mode & 0777) == 0777):"
But the problem... (1 Reply)
Hello,
I would like to know if it's a good practice to check the file permissions of the contents of a directory before moving them. For example:
mv -- "$directory"/* "$directory"/.* "$directory"/..?* "$destination"The variables $directory and $destination contain the path to an existing... (6 Replies)
Discussion started by: Cacializ
6 Replies
LEARN ABOUT OSF1
mkfifo
mkfifo(1) General Commands Manual mkfifo(1)NAME
mkfifo - Makes FIFO special files
SYNOPSIS
mkfifo [-m mode] file...
The mkfifo utility creates FIFO special files in the order specified.
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
mkfifo: XCU5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
OPTIONS
Sets the file permission bits of the new file to the specified mode value, after creating the FIFO special file. The mode argument is a
symbolic mode string (see chmod), in which the operator characters + (plus sign) and - (minus) are interpreted relative to the default file
mode for that file type. The + character adds permissions to the default mode, and - deletes permissions from the default mode.
[Tru64 UNIX] The default mode is a=rw (permissions of rw-rw-rw) as modified by the current file mode creation mask (umask).
OPERANDS
The path name of a FIFO special file to be created.
DESCRIPTION
For each file argument, mkfifo performs actions equivalent to the mkfifo() call with the following arguments: The file argument is used as
the pathname argument. If the -m option is not used, the value of the bitwise inclusive OR of S_IRUSR, S_IWUSR, S_IRGRP, S_IWGRP, S_IROTH,
and S_IWOTH is used as the mode argument.
EXIT STATUS
The mkfifo utility exits with one of the following values: Indicates that all the specified FIFO special files were created successfully.
Indicates that an error occurred.
EXAMPLES
To create a FIFO special file with permissions prw-r--r--, enter: mkfifo -m 644 /tmp/myfifo
The command creates the /tmp/myfifo file with read/write permissions for the owner and read permission for the group and for others.
To create a FIFO special file using the - (minus) operand to set permissions of prw-r-----, enter: mkfifo -m g-w,o-rw /tmp/fifo2
The command creates the /tmp/fifo2 file, removing write permission for the group and all permissions for others.
ENVIRONMENT VARIABLES
The following environment variables affect the execution of mkfifo: Provides a default value for the internationalization variables that
are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization
variables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string
value, overrides the values of all the other internationalization variables. Determines the locale for the interpretation of sequences of
bytes of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). Determines the locale for the
format and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the processing of
LC_MESSAGES.
SEE ALSO
Commands: mkdir(1), mknod(8)
Functions: chmod(2), mkdir(2), mkfifo(3), mknod(2), umask(2)
Standards: standards(5)mkfifo(1)