10 More Discussions You Might Find Interesting
1. AIX
Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies
2. Solaris
Hi Folks,
I have Solaris 10, latest release.
We have passwd aging set in /etc/defalut/passwd.
I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging.
When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies
3. UNIX for Dummies Questions & Answers
questions:
a. where can I customized the password of userid in solaris? say I wanted 10digits long, all caps?
thanks (4 Replies)
Discussion started by: lhareigh890
4 Replies
4. Solaris
Hi all.
Quick question.
How can I tell if someone is logging in to our unix servers with an application id and not their personal id?
Thanks (2 Replies)
Discussion started by: jamie_collins
2 Replies
5. Shell Programming and Scripting
Hi,
1#what is the command to get name associated with userid?
2#I am using unix on Mainframes thru OMVS.
So any one know to to capture TSO command output to a variable on OMVS environment.
I tried with below script, but its not working!
#!/bin/ksh
output=$(tso whois PA1234)
echo... (6 Replies)
Discussion started by: prashant43
6 Replies
6. Red Hat
Hi All,
I got this userid apache with the same userid and groupid and /sbin/nologin and the /www/a home folder is empty.
Can I just delete this userid? How can I investigate if userid have something to do with the application?
Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies
7. UNIX for Advanced & Expert Users
I would like to know the difference between the real user-id and the
effective user-id. If user-A runs a program owned by user-B then
which is the real user-id and which is the effective user-id ? (1 Reply)
Discussion started by: sundaresh
1 Replies
8. Solaris
Hey guys, I need to set up some userid's on Solaris. These userid's will be used to view log files, so I will make the home dir /var/tmp. Is there anyway to make this the only dir that the id has access to?
I know about chmod, and short of going thru every file on the box to make sure there is... (2 Replies)
Discussion started by: amheck
2 Replies
9. Shell Programming and Scripting
Hi I am trying to write a script to check the log files for the trancactions based on usr input date and user input user id.
I will take the user input userid and user input date and check there are any creation deletion happened, if so mail it other wise say no transactions;
I got user... (2 Replies)
Discussion started by: gundu
2 Replies
10. UNIX for Dummies Questions & Answers
What's wrong with this syntax? It's part of my 'if' statement but it doesn't seem to pass and it keeps going to the 'else' part.
I thought it says that userid must start with a non-numeric character and is between 6 and 10 characters long (alphanumeric).
$userid|grep -Eq '^?\{6,10\}+$'
if... (2 Replies)
Discussion started by: giannicello
2 Replies
FBB::User(3bobcat) /etc/passwd user info FBB::User(3bobcat)
NAME
FBB::User - Provides the /etc/passwd info of the current user
SYNOPSIS
#include <bobcat/user>
Linking option: -lbobcat
DESCRIPTION
This class retrieves the information of the current user from the information in /etc/passwd. The class is a simple wrapper class around
the getpwent(3) function.
NAMESPACE
FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.
INHERITS FROM
-
CONSTRUCTORS
o User():
The default constructor determines the current user's data. This constructor throws an Errno exception if it did not properly com-
plete because the current user name could not be found in /etc/passwd. The copy and move constructors are available.
OVERLOADED OPERATORS
The copy and move assignment operators are available.
MEMBER FUNCTIONS
o size_t groupid() const:
Returns the user's group-id.
o std::string homedir() const:
Returns the user's home directory (including a trailing /).
o std::string name() const:
Returns the user's user-name.
o std::string password() const:
Returns the user's encrypted password. But see also the BUGS section.
o std::string realname() const:
Returns the user's real name, as listed in the /etc/passwd's gecos field.
o std::string shell() const:
Returns the user's shell.
o size_t userid() const:
Returns the user's user-id.
o void verify() const:
Obsoleted, will be removed in a future Bobcat release.
EXAMPLE
#include <bobcat/user>
#include <iostream>
using namespace std;
using namespace FBB;
int main()
{
User user;
user.verify();
cout << "
"
"name : " << user.name() << "
" <<
"password : " << user.password() << "
" <<
"user id : " << user.userid() << "
" <<
"group id : " << user.groupid() << "
" <<
"real name : " << user.realname() << "
" <<
"home dir : " << user.homedir() << "
" <<
"shell : " << user.shell() << "
" << endl;
return 0;
}
FILES
bobcat/user - defines the class interface
SEE ALSO
bobcat(7), getpwent(3)
BUGS
If the user is a member of multiple groups, only the group id listed in /etc/passwd is returned by groupid().
If shadow passwording is used, the string returned by password() will probably not contain the encrypted password.
DISTRIBUTION FILES
o bobcat_3.01.00-x.dsc: detached signature;
o bobcat_3.01.00-x.tar.gz: source archive;
o bobcat_3.01.00-x_i386.changes: change log;
o libbobcat1_3.01.00-x_*.deb: debian package holding the libraries;
o libbobcat1-dev_3.01.00-x_*.deb: debian package holding the libraries, headers and manual pages;
o http://sourceforge.net/projects/bobcat: public archive location;
BOBCAT
Bobcat is an acronym of `Brokken's Own Base Classes And Templates'.
COPYRIGHT
This is free software, distributed under the terms of the GNU General Public License (GPL).
AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl).
libbobcat1-dev_3.01.00-x.tar.gz 2005-2012 FBB::User(3bobcat)