I have a file in my home directory and I want to know all the users who have tried to read the file from my directory and or access the particualr file.
Could someone helpme in this as to how I can proceed further?
Thanks. (3 Replies)
Hi all,
to find a user whether he had an account on AIX box i will use commands like
"finger" , "lsuser".
I am new to solaris and we are migrating to solaris.
now i am using " more /etc/passwd | grep -i <UserID> " to find a user present in that solaris box or not.
Are der any similar... (9 Replies)
How can I do a ldapsearch to find a DN for a user when I know the exact cn for that user out of active directory.
I have tried several different commands (hundreds) but need the -b with the full dn to perform the search using ldapsearch from AIX. I am trying to find the OU for a user and the... (3 Replies)
I need to find user login name with their First name and last name .Using HP-UX .
i used Finger but couldn't able to get ...
$ finger ravi.kumar@domain.com
ksh: domain.com: not found
i tried with finger kumar ravi
finger ravi kumar but not able to get
It just giving
Login name:... (9 Replies)
i am prompting for a name to search.
read user
if
then
however, i get this error:
please enter a username on the system:
fool
menu_script2.sh: line 123: (4 Replies)
What I'm trying to do is write a script in Perl to find a user and if that user exist it would print "User Exist, Pls Try Again". If The user doesn't exist I'm able to create a user with a password.
Any suggestions? (3 Replies)
All,
Working in Kubuntu 14.04
I know I can find the default user line using the cmd from bash:
cat /etc/passwd | grep 1000
What I get is:
user:x:1000:1000:User Name,,,:/home/user:/bin/bash
How do I extract to get:
myuser=$user
myhome=$homdir
All help appreciated!
Thanks! (6 Replies)
Discussion started by: OldManRiver
6 Replies
LEARN ABOUT DEBIAN
af_establish
af_files(3) Attribute Filesystem (AtFS) af_files(3)NAME
af_crkey, af_open, af_close, af_rm, af_establish, af_restore - AtFS file system operations
SYNOPSIS
#include <stdio.h>
#include <atfs.h>
int af_crkey (char *syspath, char *name, char *type, Af_key *aso)
FILE *af_open (Af_key *aso, char *mode)
int af_close (FILE *stream)
int af_rm (Af_key *aso)
int af_establish (Af_key *aso, char *filename)
int af_restore (Af_key *aso, Af_key *restoredAso)
DESCRIPTION
af_crkey creates an object key for a regular UNIX file identified by name, type and system path. syspath is an either absolute or relative
directory name. An empty syspath refers to the current directory. By convention, AtFS interprets the filename suffix of a UNIX file as type
and the filename without suffix as name attribute. To give an example, the path name
/usr/andy/foo.c is split up in /usr/andy (syspath) foo (name) c (type)
A period as first character in the filename is always considered as part of the name. Hence .cshrc has a name but no type. "." and ".." are
recognized as names too. If the named UNIX file does not exist, af_crkey creates an empty file. The created key remains accessible until
it is explicitly given up by af_dropkey (manual page af_retrieve(3)).
af_open opens the contents of the ASO pointed to by aso and associates a stream with it. A pointer to the FILE structure associated with
the stream is returned. Mode is a character string that is either "r[+]", "w[+]" or "a[+]". See fopen(3) for further details. Upon error,
af_open returns a NULL pointer. Non-busy ASOs can only be opened with mode "r". If a non-busy ASO is opened, it's contents will be placed
in a temporary UNIX file due to storage of versions as deltas.
af_close closes a stream previously opened by af_open (see fclose(3)). Temporary files created by af_open, holding the contents of a saved
versions are unlinked right after being opened so that they will automatically disappear on closing.
af_rm removes the specified ASO. The application has to have a lock (see af_lock(3)) set on the ASO that shall be deleted by af_rm. ASOs
with the state attribute set to accessed or frozen cannot be removed. If you keep multiple keys of one object (perhaps in different sets)
af_rm invalidates all keys of the removed object. As AtFS does not support multiple links to saved ASOs, af_rm on a saved version always
does a physical removal.
af_establish establishes the contents of the saved version, pointed to by aso in a file named filename. The resulting file gets the ver-
sion's modification and access date.
af_restore is used to restore formerly saved derived ASOs into their old file location. It also restores the file modification and access
date. This function cannot be applied to source objects. af_restore returns the key of the restored version in the buffer restoredAso.
SEE ALSO fopen(3), fclose(3), af_retrieve(3), af_lock(3)DIAGNOSTICS
Upon error, -1 or a nil pointer (depending on the return type) is returned and af_errno is set to the corresponding error number.
AtFS-1.71 Fri Jun 25 14:33:07 1993 af_files(3)