06-01-2009
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Folks;
I'm a root but i couldn't change /home directory permission or group. i'm getting operation not permitted.
Any help? (6 Replies)
Discussion started by: moe2266
6 Replies
2. Solaris
I am using oracle 9i with sun solaris 8 on Sun E 250 server.earlier we are taking backup of oracle archive files on /orabackup directory.in which archive file are stored with ...arc.Z extension. now we have changed the archive backup directory.now when we are trying to delete earlier directory... (3 Replies)
Discussion started by: mahanalok
3 Replies
3. Solaris
Hi All
While configuring zone I run
add inherit-pkg-dir
I thing this command will inherit opt,etc,lib... directories from global zone to non global zone with read permission................
So this makes problem for me I want to edit one file opt dir which is useful for my project but when I... (4 Replies)
Discussion started by: vijaysachin
4 Replies
4. HP-UX
Hi
i am new to this admin area .
i have created user with name as "ab" and gave home dir as /home/ab .
when i tried to create the /home/ab dir , i got he following error.
"mkdir: Failed to make directory "/home/ab"; Operation not applicable
"
Thanks in advance . (1 Reply)
Discussion started by: expert
1 Replies
5. UNIX for Dummies Questions & Answers
I've been through many threads before i decide to create a separate thread.
I can't really find the solution to my (simple) problem.
Here's what I'm trying to achieve:
As "canar" user I want to run a command, let's say "/opt/ocaml/bin/ocaml" as "duck" user.
The only to achieve this is to... (1 Reply)
Discussion started by: canar
1 Replies
6. Solaris
hi guys..
how to give root permission for particular user
tel me step by step (2 Replies)
Discussion started by: coolboys
2 Replies
7. UNIX for Advanced & Expert Users
In our project we have several unix scripts that trigger different processes. These scripts write logs to a particular folder 'sesslogs', create output data files in a separate directory called 'datafiles' etc. Usually L1 support team re-run these scripts . We donot want L1 support team to have... (14 Replies)
Discussion started by: waavman
14 Replies
8. HP-UX
Hi All
I had installed sudo in HP UX 11.3 and it is working fine but not able to make entry required to set permission similar to ROOT without using password (PASSWD) change option for define user in /etc/sudoers file
Please help if some know the syntex? :confused::wall: (2 Replies)
Discussion started by: deviltech
2 Replies
9. UNIX for Dummies Questions & Answers
Whenever i switch from root to another user, by doing su - user, it takes me to home directory of user. This is very annoying as i want to be in same dir to run different commands as root sometimes and sometimes as normal user.
How to fix this? (1 Reply)
Discussion started by: syncmaster
1 Replies
10. AIX
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Discussion started by: blinkingdan
0 Replies
LEARN ABOUT SUNOS
opendir
opendir(3C) Standard C Library Functions opendir(3C)
NAME
opendir, fdopendir - open directory
SYNOPSIS
#include <sys/types.h>
#include <dirent.h>
DIR *opendir(const char *dirname);
DIR *fdopendir(int fildes);
DESCRIPTION
The opendir() function opens a directory stream corresponding to the directory named by the dirname argument.
The fdopendir() function opens a directory stream for the directory file descriptor fildes. The directory file descriptor should not be
used or closed following a successful function call, as this might cause undefined results from future operations on the directory stream
obtained from the call. Use closedir(3C) to close a directory stream.
The directory stream is positioned at the first entry. If the type DIR is implemented using a file descriptor, applications will only be
able to open up to a total of {OPEN_MAX} files and directories. A successful call to any of the exec functions will close any directory
streams that are open in the calling process. See exec(2).
RETURN VALUES
Upon successful completion, opendir() and fdopendir() return a pointer to an object of type DIR. Otherwise, a null pointer is returned and
errno is set to indicate the error.
ERRORS
The opendir() function will fail if:
EACCES Search permission is denied for the component of the path prefix of dirname or read permission is denied for dirname.
ELOOP Too many symbolic links were encountered in resolving path.
ENAMETOOLONG The length of the dirname argument exceeds {PATH_MAX}, or a path name component is longer than {NAME_MAX} while
{_POSIX_NO_TRUNC} is in effect.
ENOENT A component of dirname does not name an existing directory or dirname is an empty string.
ENOTDIR A component of dirname is not a directory.
The fdopendir() function will fail if:
ENOTDIR The file descriptor fildes does not reference a directory.
The opendir() function may fail if:
EMFILE There are {OPEN_MAX} file descriptors currently open in the calling process.
ENAMETOOLONG Pathname resolution of a symbolic link produced an intermediate result whose length exceeds PATH_MAX.
ENFILE Too many files are currently open on the system.
USAGE
The opendir() and fdopendir() functions should be used in conjunction with readdir(3C), closedir(3C) and rewinddir(3C) to examine the con-
tents of the directory (see the EXAMPLES section in readdir(3C)). This method is recommended for portability.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |opendir() is Standard; |
| |fdopendir() is Evolving |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
lstat(2), symlink(2), closedir(3C), readdir(3C), rewinddir(3C), attributes(5)
SunOS 5.10 1 Aug 2001 opendir(3C)