Sponsored Content
Operating Systems Linux Red Hat qmail configuration in redhat linux - doubts Post 302078112 by jones_linux on Wednesday 28th of June 2006 06:09:27 AM
Old 06-28-2006
Thanks

Smilie
Regards,
jones
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

x window configuration for redhat 6.0

I recently tried to install redhat 6.0 on my IBM desk top. Everything was fine except the x window. After the installation, I logged in, the icons and graphics were so big that I even could not read a complete message in one screen. I did not find any helpful tool in the control panel to help me... (4 Replies)
Discussion started by: yinuod
4 Replies

2. UNIX for Dummies Questions & Answers

RedHat display cpu configuration

Hello people ! Does anyone knows how can I get the CPU configuration in the RedHat Box ??? I need know the frequence of cpu and how much cpu(s) in my box ... Thank you, Witt (2 Replies)
Discussion started by: witt
2 Replies

3. News, Links, Events and Announcements

Linux mail servers benchmarks (Qmail, Sendmail,Postfix)

New Linux mail servers benchmarks website. Check out http://benchmarks.dmz.ro . (0 Replies)
Discussion started by: cipango
0 Replies

4. Programming

Doubts About C Compiler In Unix/linux

As all of you know whenever a program "say a.c" is complied in linux using the gcc or the cc compiler..it shows the list of errors ( if the program contains any).. i want to modify the compier script so as to list the no of errors only and not the description about the error..like" parse error " ... (1 Reply)
Discussion started by: vrs
1 Replies

5. UNIX for Dummies Questions & Answers

Qmail Configuration

hey, plz tell me someone how to configure qmail in redhat linux 9.0. (1 Reply)
Discussion started by: raj_shivage
1 Replies

6. Programming

Doubts about timers in linux kernel

Hi , I am trying to learn timers in linux kernel. I am trying to write a program where I can configure a timer to tick in every 5 seconds and a function should thus exicute in every five seconds. I tried one program with the help of linux/timer.h headerfile but I couldnt get the... (4 Replies)
Discussion started by: iamjayanth
4 Replies

7. Red Hat

Dns configuration error in Redhat

Dear All I want to configure DNS in redhat linux. i am following these steps but when i restart the services it is showing status failed. Please any body can help me on urgent basis. #service named restart Stopping named: Starting named: ---------Edited in named.conf... (2 Replies)
Discussion started by: sahu.tapan
2 Replies

8. Shell Programming and Scripting

Few doubts on Linux scripting

1) I have to create 3 scripts which create different output files. Script one creates datafiles, script2 creates control files and script3 creates flg files. The business wants the same timestamp to be attached to all the files created by these scripts. Script1- Create data files - Data files... (2 Replies)
Discussion started by: Maya_Pillai
2 Replies

9. UNIX for Dummies Questions & Answers

Linux kernel modules makefiles doubts

This query is regarding the makefiles of linux kernel modules. I saw at some sites on net it is suggesting to include the following path: KERNEL_SOURCE := /usr/src/linux... while at some places it is askibg to include /lib/modules path: KERNEL_SOURCE := /lib/modules/2.6.27-7-generic/build... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

10. UNIX for Dummies Questions & Answers

Postfix Configuration:Hostname/Domain Name Doubts

I have a RHEL server where I want to create a mail server so I can send myself alerts whenever X process have problems. Disclaimer: Im a programmer thats been forced to do IT. So I'm trying my best here. The problem: While configuring Postfix it asks for $myhostname which apparently must be... (2 Replies)
Discussion started by: RedSpyder
2 Replies
FCHOWN(3P)						     POSIX Programmer's Manual							FCHOWN(3P)

PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond- ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME
fchown - change owner and group of a file SYNOPSIS
#include <unistd.h> int fchown(int fildes, uid_t owner, gid_t group); DESCRIPTION
The fchown() function shall be equivalent to chown() except that the file whose owner and group are changed is specified by the file descriptor fildes. RETURN VALUE
Upon successful completion, fchown() shall return 0. Otherwise, it shall return -1 and set errno to indicate the error. ERRORS
The fchown() function shall fail if: EBADF The fildes argument is not an open file descriptor. EPERM The effective user ID does not match the owner of the file or the process does not have appropriate privilege and _POSIX_CHOWN_RESTRICTED indicates that such privilege is required. EROFS The file referred to by fildes resides on a read-only file system. The fchown() function may fail if: EINVAL The owner or group ID is not a value supported by the implementation. The fildes argument refers to a pipe or socket or an fat- tach()-ed STREAM and the implementation disallows execution of fchown() on a pipe. EIO A physical I/O error has occurred. EINTR The fchown() function was interrupted by a signal which was caught. The following sections are informative. EXAMPLES
Changing the Current Owner of a File The following example shows how to change the owner of a file named /home/cnd/mod1 to "jones" and the group to "cnd". The numeric value for the user ID is obtained by extracting the user ID from the user database entry associated with "jones". Similarly, the numeric value for the group ID is obtained by extracting the group ID from the group database entry associated with "cnd". This example assumes the calling program has appropriate privileges. #include <sys/types.h> #include <unistd.h> #include <fcntl.h> #include <pwd.h> #include <grp.h> struct passwd *pwd; struct group *grp; int fildes; ... fildes = open("/home/cnd/mod1", O_RDWR); pwd = getpwnam("jones"); grp = getgrnam("cnd"); fchown(fildes, pwd->pw_uid, grp->gr_gid); APPLICATION USAGE
None. RATIONALE
None. FUTURE DIRECTIONS
None. SEE ALSO
chown(), the Base Definitions volume of IEEE Std 1003.1-2001, <unistd.h> COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol- ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html . IEEE
/The Open Group 2003 FCHOWN(3P)
All times are GMT -4. The time now is 11:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy