Sponsored Content
Full Discussion: Cached account info
Operating Systems Linux SuSE Cached account info Post 302913089 by Perderabo on Wednesday 13th of August 2014 03:58:31 PM
Old 08-13-2014
Then maybe you have a shell that behaves like ksh. Here is a test...

Code:
$ exec ksh
$ echo ~testgut
/home/testgut
$ getent passwd testgut
testgut:x:13128:13128::/home/testgut:/bin/bash
$ sudo ksh
# vi /etc/passwd
# getent passwd testgut
testgut:x:13128:13128::/data/home/testgut:/bin/bash
#
$ echo ~testgut
/home/testgut

The problem is that ksh has cached the meaning of ~testgut. I don't know a gentle way to make it refresh. So I do this...
Code:
$ exec ksh
$ echo ~testgut
/data/home/testgut
$

The "exec ksh" gives me a freshly started copy of ksh.

Also, any program can do what ksh did. You may be using some other program that has a private cache. There may be some way built in to handle a refresh. Or maybe you need to restart it entirely as I did with ksh.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to remove cached squid??

hi, how do i remove the cache from squid automatically every day?/ ie., from /var/spool/squid/ all the directories which has been cached here and restart ONLY squid without rebooting the system, including the swap.state files thanx in advance cheers (1 Reply)
Discussion started by: balu
1 Replies

2. UNIX for Dummies Questions & Answers

Is there any way to know info about who else in the account

except the 'who' command ? i mean to know if someone doing actions in my account ? (1 Reply)
Discussion started by: umen
1 Replies

3. UNIX for Dummies Questions & Answers

Change Account to not lock account if password expires

I have access to 15+ UNIX boxes at work, and I do not consistently log onto all of them over time. When I do try to access one I havent been on in awhile, my account is locked as the password has expired. I need to request to the UNIX SA's that the password expiration is 90 days and that if it... (1 Reply)
Discussion started by: stringzz
1 Replies

4. UNIX for Dummies Questions & Answers

Release the memory which is cached.

Hi, Can any one suggest me the way how can get mamory which has been cached during a process execution without rebooting the machine? (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

5. Linux

Apply disk quota to account(dedicate 3 GB to account).

Hi , I am faceing lot of problem due to "disk space is not enough". senerio is like as, In system has 5 account. a,b,c,d,e say account c if very critical. Due to other user's data, user 'c' is faceing disk space issue. I want to dedicate 3 GB for user 'c'. No user... (1 Reply)
Discussion started by: ashokd009
1 Replies

6. UNIX for Dummies Questions & Answers

is process data cached somewhere?

hi When I search a file with find, the subsequent search process takes relatively less time. Is it cached somewhere in RAM altough the process died? (3 Replies)
Discussion started by: xyzt
3 Replies

7. UNIX for Advanced & Expert Users

GID mappings cached?

We had a mapping to one UNIX box just fine, the server was changed to another UNIX box and now when mapping drives from Windows box to new UNIX box, we get the old GID associated with our Windows user. When checking on new UNIX box, we see GID of 108, which is what we want, but when we map the... (0 Replies)
Discussion started by: bd4021
0 Replies

8. How to Post in the The UNIX and Linux Forums

Simultaneously try to execute commands after connecting to remote account to one account

I have made password less connection to my remote account. and i tried to execute commands at a time. but i am unable to execute the commands. ssh $ACCOUNT_DETAILS@$HOST_DETAILS cd ~/JEE/*/logs/ (1 Reply)
Discussion started by: kishored005
1 Replies

9. Windows & DOS: Issues & Discussions

What happens to your skype account if you close outlook.com email account?

Hello, Does anyone know what happens to your skype account if you close the outlook.com email account which are linked together? As you know they are both owned by Microsoft. Thanks (0 Replies)
Discussion started by: milhan
0 Replies
AUDIT_LOG_ACCT_MESSAGE(3)					  Linux Audit API					 AUDIT_LOG_ACCT_MESSAGE(3)

NAME
audit_log_acct_message - log a user account message SYNOPSIS
#include <libaudit.h> int audit_log_acct_message(int audit_fd, int type, const char *pgname, const char *op, const char *name, unsigned int id, const char *host, const char *addr, const char *tty, int result) DESCRIPTION
This function will log a message to the audit system using a predefined message format. It should be used for all account manipulation operations. The function parameters are as follows: audit_fd - The fd returned by audit_open type - type of message: AUDIT_USER_CHAUTHTOK for changing any account attributes. pgname - program's name, if NULL will attempt to figure out op - operation. Ex: "adding user", "changing finger info", "deleting group" name - user's account or group name. If not available use NULL. id - uid or gid that the operation is being performed on. This is used only when user is NULL. host - The hostname if known addr - The network address of the user tty - The tty of the user, if NULL will attempt to figure out result - 1 is "success" and 0 is "failed" RETURN VALUE
It returns the sequence number which is > 0 on success or <= 0 on error. ERRORS
This function returns -1 on failure. Examine errno for more info. SEE ALSO
audit_log_user_message(3), audit_log_user_comm_message(3), audit_log_user_avc_message(3), audit_log_semanage_message(3). AUTHOR
Steve Grubb Red Hat Oct 2006 AUDIT_LOG_ACCT_MESSAGE(3)
All times are GMT -4. The time now is 04:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy