hi guys, I'have a question 4 u.
Why this code give me the right output (an integer on the stdout):
read(fd,&mpid,sizeof(pid_t));
printf("%d\n",mpid);
Instead this code give me only a blank line:
read(fd,&mpid,sizeof(pid_t));
write(STDOUT_FILENO,&mpid,sizeof(pid_t));
... (2 Replies)
Hello mates:
I met problem with using read() & write(). I m trying to use read twice on client first time is the size of buffer, 2nd time is the buffer. I think I have to, coz I dnot know file size. So, I write twice on server as well -- 1st, filesize; 2nd, buffer.
The problem is, sometimes,... (11 Replies)
Folks;
I'd like to create a group on my Linux box & add a few users to it.
Is there a way to do so and restrict this group/users to have access to only one or directory trees?
Let's say i need this group to only have a read write access to only these two directories /opt/Virtu & /fsn/comers
... (10 Replies)
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Hi
want to know what file (descriptor+filename+socket) is being accessed by particular process on solaris.
Purpose : while running perf. test, needs to find where is the bottleneck.
We are providing concurrnet load for around 1 hr and needs to capture data related to file usage pattern... (1 Reply)
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Folks,
I have written one script for following condition by referring some of online post in this forum. Please correct it if I'm missing something in it. (OS: AIX 5.3)
List the idle user. (I used whoidle command to list first 15 user and get username, idle time, pid and login time).... (4 Replies)
Hi All,
I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be possible and how can this be achieved within samba configuration.
Regards,
Sahil (1 Reply)
Discussion started by: sahil_shine
1 Replies
LEARN ABOUT HPUX
privatepw
privatepw(1) General Commands Manual privatepw(1)NAME
privatepw - Change WU-FTPD Group Access File Information
SYNOPSIS DESCRIPTION
If a site supports the SITE GROUP and SITE GPASS commands, it is necessary to be able to add, delete and list enhanced access group infor-
mation. The utility is used to update this information in the group access file This is meant as an administrative tool and not to be run
by the general user population. This command requires read/write permission to the appropriate ftpgroups file.
Options
In the options defined below, accessgroup is an alphanumeric name specified to a group. Please see the section for details.
Create a new file.
Delete the specified
accessgroup information from the ftpgroups file.
Use the specified
ftpgroups file for all updates. If this option is not specified by default it takes the file.
Set the real system group (defined in
to the accessgroup specified. This is valid only when adding a new accessgroup or changing the password of an exist-
ing accessgroup.
List the contents of the appropriate ftpgroups file.
This option causes the program to display copyright and version information,
then terminate.
Background
After user logs in, the SITE GROUP and SITE GPASS commands may be used to specify an enhanced access group and associated password. If the
group name and password are valid, the user becomes (via a member of the group list in the group access file
The format of the group access file is:
where access_group_name is an arbitrary (alphanumeric + punctuation) string. encrypted_password is the password encrypted via crypt(3),
exactly like in real_group_name is the name of a valid group listed in
AUTHOR
was developed by the Washington University, St. Louis, Missouri.
SEE ALSO ftpgroups(4), ftpaccess(4).
privatepw(1)