explain_chmod_or_die(3) Library Functions Manual explain_chmod_or_die(3)NAME
explain_chmod_or_die - change permissions of a file and report errors
SYNOPSIS
#include <libexplain/chmod.h>
void explain_chmod_or_die(const char *pathname, int mode);
DESCRIPTION
The explain_chmod_or_die function is used to call the chmod(2) system call. On failure an explanation wiil be printed to stderr, obtained
from explain_chmod(3), and the the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_chmod_or_die(pathname, mode);
pathname
The pathname, exactly as to be passed to the chmod(2) system call.
mode The mode, exactly as to be passed to the chmod(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exit(EXIT_FAILURE)s.
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
AUTHOR
Written by Peter Miller <pmiller@opensource.org.au>
explain_chmod_or_die(3)
Check Out this Related Man Page
explain_mkdir_or_die(3) Library Functions Manual explain_mkdir_or_die(3)NAME
explain_mkdir_or_die - create a directory and report errors
SYNOPSIS
#include <libexplain/mkdir.h>
void explain_mkdir_or_die(const char *pathname);
DESCRIPTION
The explain_mkdir_or_die function is used to call the mkdir(2) system call. On failure an explanation will be printed to stderr, obtained
from explain_mkdir(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_mkdir_or_die(pathname);
pathname
The pathname, exactly as to be passed to the mkdir(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO mkdir(2)
create a directory
explain_mkdir(3)
explain mkdir(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_mkdir_or_die(3)
i want to run a forum on my site and in the readme file it says you must chmod to 755 but i do not know how to chmod a file can anyone help me??? (2 Replies)
Hey everyone, I was wondering if there was a quicker way to chmod a lot of files than doing what im currently doing.
At the moment, im doing chmod 777 *filename* - but I have a lot of files, sub-directories, sub-files etc etc. And at the moment I see I have to chmod every single file... (3 Replies)
Trying to install something. Can someone explain what this means?
chmod -R a+r .
chmod -R a+w logo.gif tempdir/ templates_c/
I recognize that file permissions are being changed (chmod), but beyond that, it's Greek to me. (6 Replies)
Hi
I have a text file which contains a list of file names (one file name per line). I would like to pass the contents of this file into chmod to change the permissions. I am having trouble getting the correct syntax for this. Can someone please tell me if its possible to do this?
Thanks (2 Replies)
Hi,
Ho do I differentiate system call from library call?
for example if I am using chmod , how do I find out if it is a system call or library call?
Thanks
Muru (2 Replies)
I want to make a hidden file with chmod command.
Example:
I have a file name inputfile.txt
-rw-r--r-- 1 xxxxxx xxxxxx 1388 Sep 12 05:41 inputfile.txt
I want to hide that file using chmod command.
Please tell me if it is possible or there is some other way to do this.
Thanks... (2 Replies)
Hi i am transferring the files(around 10000) from the Windows sever to the UNIX server in that i run a command chmod 777 filename.txt
but it is taking a longer time as it gives chmod for each and every file.
So i thouught of giving the permission from the UNIX itself and i tried running
chmod... (2 Replies)
Hello,
i want just to change Rights for a few direcories anf files, but some directories must be exclude.
How can i put the command chmod as
chmod -R 755 * exclude toto tata
where toto and tata are directories
Could you help me for that or must I use the find command
Thanks (2 Replies)
If I:
chmod 740 Documents/
Documents/ = drwxr-----
If I:
chmod 750 Documents/
Documents/ = drwxr-x---
How does that work?
I want to achieve drwxrw---- (5 Replies)
Hi Bros,
I have a question want to receive your help.
On SunOS server. I have 1 file in /etc. mode of file is "read only". I've used chmod 777 commmand to change mode of that file. firstly, it's ok. but about 3 mins after that. The mode of that file rollback to "read only". I don't know how.... (4 Replies)
After much reflecting I decided that I don't want to have a remote managemente in my computer and I digited in Terminal from the Administrator Account:
chmod ug-s /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAgent
But the answer is: NOT PERMITTED Why? Is it not... (6 Replies)
Oracle Linux 6.4 with bash
Question from a beginner
To change permissions using chmod, I can use 2 methods. Since I don't know the terminology, I am calling them Method1 and Method2.
In the below example, both Method1 and Method2 do the same thing. Which one is you favourite method ?
#... (5 Replies)