Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

explain_fchown_or_die(3) [debian man page]

explain_fchown_or_die(3)				     Library Functions Manual					  explain_fchown_or_die(3)

NAME
explain_fchown_or_die - change ownership of a file and report errors SYNOPSIS
#include <libexplain/fchown.h> void explain_fchown_or_die(int fildes, int owner, int group); DESCRIPTION
The explain_fchown_or_die function is used to call the fchown(2) system call. On failure an explanation will be printed to stderr, obtained from explain_fchown(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_fchown_or_die(fildes, owner, group); fildes The fildes, exactly as to be passed to the fchown(2) system call. owner The owner, exactly as to be passed to the fchown(2) system call. group The group, exactly as to be passed to the fchown(2) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
fchown(2) change ownership of a file explain_fchown(3) explain fchown(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_fchown_or_die(3)

Check Out this Related Man Page

explain_futimes_or_die(3)				     Library Functions Manual					 explain_futimes_or_die(3)

NAME
explain_futimes_or_die - change file timestamps and report errors SYNOPSIS
#include <libexplain/futimes.h> void explain_futimes_or_die(int fildes, const struct timeval *tv); DESCRIPTION
The explain_futimes_or_die function is used to call the futimes(3) system call. On failure an explanation will be printed to stderr, obtained from explain_futimes(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_futimes_or_die(fildes, tv); fildes The fildes, exactly as to be passed to the futimes(3) system call. tv The tv, exactly as to be passed to the futimes(3) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
futimes(3) change file timestamps explain_futimes(3) explain futimes(3) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_futimes_or_die(3)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Changing the process owner

How do I change the owner of the process in runtime.I'm working AIX. I would appreciate ,If I get sample scripts. (1 Reply)
Discussion started by: kkb_karthi
1 Replies

2. UNIX for Advanced & Expert Users

File group ownership changing automatically

Hi everyone, Need help with an issue. The group ownership of files on my Solaris system is getting changed automatically. Could someone tell me the reason why? And how could I correct it? One more info- everytime the ownership changes, it changes to "x". Thanks :confused: (1 Reply)
Discussion started by: top_gun
1 Replies

3. UNIX for Dummies Questions & Answers

change owner of a file

im running into changing the ownership of a file. I am trying to change the ownership to "system", but it doesn't want to work. I sudo chown system /preferences.plist Password: chown: system: Invalid argument is there a way to read the ownership of a file, something like read chown... (3 Replies)
Discussion started by: CBarraford
3 Replies

4. UNIX for Dummies Questions & Answers

I am the owner,yet not allowed the change the ownership

sm860 IS the owner of the files below,but yet sm860 cannot change the ownership to bpt3a1.Please let me know why ? See below for details --- sm860@unixs741_DEV:/usr/gdp/home/ftp/bpt3a1/incoming/ahdb/T5/pcasav/daily $ ls -l pcasav* -rw-r--r-- 1 sm860 gdpintegrators 821 Sep 21 16:15... (8 Replies)
Discussion started by: MSHETTY
8 Replies

5. Red Hat

Linux file ownership

Hi Friends, I am using RHEL5.3 64bit. I have a data filesystem on this, which have lot of files copied from another server. I cannot see correct owner and group displayed for these servers. It shows 113 for owner and 755 for group. Anybody please tell me why it is? Regards, Arumon (1 Reply)
Discussion started by: arumon
1 Replies