Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

explain_chmod_or_die(3) [debian man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

run a forum

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)
Discussion started by: hans vink
2 Replies

2. UNIX for Dummies Questions & Answers

chmod...

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)
Discussion started by: mo0ness
3 Replies

3. UNIX for Dummies Questions & Answers

Need Help Understanding a Unix Command

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)
Discussion started by: chris86
6 Replies

4. UNIX for Dummies Questions & Answers

How Do I Make My wesite available to view?

I think it is something like chmod ... but after that i am lost (2 Replies)
Discussion started by: awesomeaustin75
2 Replies

5. UNIX for Dummies Questions & Answers

chmod - pass a filelist as a parameter?

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)
Discussion started by: alangibson
2 Replies

6. UNIX for Advanced & Expert Users

how to differentiate system call from library call

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)
Discussion started by: muru
2 Replies

7. Shell Programming and Scripting

change file type to hidden using chmod command

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)
Discussion started by: rinku
2 Replies

8. Shell Programming and Scripting

Paramater list too long while chmod

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)
Discussion started by: Codesearcher
2 Replies

9. UNIX for Dummies Questions & Answers

chmod -R recursive flag

Hi, why can't I use the flag -R recursive ? ftp> chmod -R a+xwr kickstart usage: chmod mode remote-file ftp> chmod a+xwr kickstart 200 SITE CHMOD command successful thanks (2 Replies)
Discussion started by: aneuryzma
2 Replies

10. Shell Programming and Scripting

Change Rights Recursive with chmod

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)
Discussion started by: steiner
2 Replies

11. Shell Programming and Scripting

One doubt regarding chmod command

which one is correct chmod 777 file.txt or chmod 777 / file.txt what is difference in these two commands? thanx in advance (2 Replies)
Discussion started by: Himanshu_soni
2 Replies

12. Linux

chmod will not drwxrw----

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)
Discussion started by: Kolusion
5 Replies

13. Solaris

chmod command in SunOS

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)
Discussion started by: hikaru022002
4 Replies

14. UNIX for Dummies Questions & Answers

chmod ug-s /System/Library/CoreServices/RemoteManagement/ARDAgent.app/.... NOT PERMITTED

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)
Discussion started by: Vera
6 Replies

15. UNIX for Dummies Questions & Answers

The professional way to use chmod ?

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)
Discussion started by: omega3
5 Replies