how do I clear passwd history of a user without compromising the audit trail for security?
in a nutshell, user abc wants to re-use his passwd ( he is not savvy with computers ) (4 Replies)
Hi...
i have one doubt pls...
1)can we clear the command line history in UNIX for a paricular login(scadm/root)if so how?.
2) can we see the time at which command executed.
history is showing like :
100 display
101 lock
102 exit (7 Replies)
hi
Any one can help me. I am using Sun_Solaris. The command history set to 100 at .cshrc. I am unable to clear the command histoy. In Linux it is very easy by giving command
history -c
I could not find any such type command to clear the history.
Is there any such type of command for solaris.... (3 Replies)
Hello all,
Working in KSH using Solaris, the default editor is VIM. So, per session, I run a small rc script which calls
export editor=emacs
This works for commands at the prompt. But if I cycle through command history (Using the up arrow) the command line editor defaults to VIM. How can I... (2 Replies)
Hi,
I would normally clear off the history entries from a terminal by using the following commands:
> ~/.bash_history
history -c
But this will remove the entries of that particular session only. How to prune all the entries of all login sessions for a particular user in a system?
N.B:... (3 Replies)
Hello All, Good Morning.
I am trying to erase history list in my linux box, but my below command is failing. What is the actual way to clear it?
> history clear
-bash: history: clear: numeric argument required
Also when I run my commands in my command prompt, my team lead can see my... (7 Replies)
Clear in Linux
#!/usr/bin/ksh
am using clear in the script, but it is not working,
it gives an error as follows,
'xterm': unknown terminal type.
please help out.:confused:
---------- Post updated at 01:19 PM ---------- Previous update was at 12:01 PM ----------
if
then
... (2 Replies)
Hi
Am using ksh shell
I need to remove history of commands used..
I tried
# rm .vi_history
# touch .vi_history
# chmod 600 .vi_history
This didnt work.. I tried also
# rm .sh_history
# touch .sh_history
# chmod 600 .sh_history (5 Replies)
As in the title, how to clear the history entries?
For eg: if i enter history, series of linux commands getting displayed from day 1. I need to clear those entries and want linux commands to be stored freshly.
Thanks in advance (6 Replies)
Discussion started by: karthick nath
6 Replies
LEARN ABOUT PHP
xattr_remove
XATTR_REMOVE(3) 1 XATTR_REMOVE(3)xattr_remove - Remove an extended attributeSYNOPSIS
bool xattr_remove (string $filename, string $name, [int $flags])
DESCRIPTION
This function removes an extended attribute of a file.
Extended attributes have two different namespaces: user and root. The user namespace is available to all users, while the root namespace is
available only to users with root privileges. xattr operates on the user namespace by default, but this can be changed with the $flags
parameter.
PARAMETERS
o $filename
- The file from which we remove the attribute.
o $name
- The name of the attribute to remove.
o $flags
-
Supported xattr flags
+-----------------+---------------------------------------------------+
| | |
|XATTR_DONTFOLLOW | |
| | |
| | Do not follow the symbolic link but operate on |
| | symbolic link itself. |
| | |
| | |
| XATTR_ROOT | |
| | |
| | Set attribute in root (trusted) namespace. |
| | Requires root privileges. |
| | |
+-----------------+---------------------------------------------------+
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Removes all extended attributes of a file
<?php
$file = 'some_file';
$attributes = xattr_list($file);
foreach ($attributes as $attr_name) {
xattr_remove($file, $attr_name);
}
?>
SEE ALSO xattr_list(3), xattr_set(3), xattr_get(3).
PHP Documentation Group XATTR_REMOVE(3)