Re: no .bash_hostory file was found in user home folder

2013-10-22 Thread Muhammad Yousuf Khan
i am using package acct (lastcomm is part of this package). my question is, isn't acct package depends upon user's .bash_history ? or it is maintaining its own log? yes i can see user can delete/edit their history file. is there anyway to record history permanently. a good solution for

Re: no .bash_hostory file was found in user home folder

2013-10-21 Thread Chris Davies
Muhammad Yousuf Khan sir...@gmail.com wrote: :~$ echo $HISTFILE /home/ykhan/.bash_history any idea where these history files are. actually i need to do some accounting for my users , what they are doing actually with time tag set to ON. These files are of limited value for accounting since

Re: no .bash_hostory file was found in user home folder

2013-10-21 Thread Dmitrii Kashin
Muhammad Yousuf Khan sir...@gmail.com writes: :~$ echo $HISTFILE /home/ykhan/.bash_history And what's with $HISTSIZE and $SAVEHIST? pgpziKawsMten.pgp Description: PGP signature

Re: Usage of grep - Was: no .bash_hostory file was found in user home folder

2013-10-20 Thread Ralf Mardorf
On Sun, 2013-10-20 at 03:13 +0200, Markus Falb wrote: I find myself doing this on occasion. Sometimes it seems quicker to add the pipe to the previous command than to modify the whole thing. I agree with this! _But_ unfortunately many people are not aware how to use some commands better and

Re: no .bash_hostory file was found in user home folder

2013-10-20 Thread Muhammad Yousuf Khan
any one can help please? On Sun, Oct 20, 2013 at 3:42 AM, Muhammad Yousuf Khan sir...@gmail.comwrote: just sharing, root user got the .bash_history file. i can see all the commands with no issues with root user only On Sun, Oct 20, 2013 at 3:36 AM, Muhammad Yousuf Khan

Re: no .bash_hostory file was found in user home folder

2013-10-20 Thread Ralf Mardorf
On Sun, 2013-10-20 at 19:36 +0500, Muhammad Yousuf Khan wrote: any one can help please? It's weekend, some subscribed here might read the mails next week. Did you already add a new user, to see if there is a history for other users? IIRC there's a history for root, but you didn't mention

Re: no .bash_hostory file was found in user home folder

2013-10-20 Thread Muhammad Yousuf Khan
Thanks for the response. the log that i shared is of a users not root. the username is ykhan and in his home folder history is missing. i also shared History variables output and i have also read via google that user should be set to /bin/bash in passwd file. so they are set to the correct path as

Re: no .bash_hostory file was found in user home folder

2013-10-20 Thread Gregory Nowak
On Sun, Oct 20, 2013 at 08:24:04PM +0500, Muhammad Yousuf Khan wrote: Thanks for the response. the log that i shared is of a users not root. the username is ykhan and in his home folder history is missing. i also shared History variables output and i have also read via google that user should

no .bash_hostory file was found in user home folder

2013-10-19 Thread Muhammad Yousuf Khan
:~$ ls -la total 8492368 drwxr-xr-x 3 ykhan ykhan 4096 Aug 16 04:00 . drwxr-xr-x 12 root root4096 Oct 19 17:57 .. -rw-r--r-- 1 ykhan ykhan220 Apr 16 2013 .bash_logout -rw-r--r-- 1 ykhan ykhan 3184 Apr 16 2013 .bashrc drwxr-xr-x 2 ykhan ykhan 4096 Aug 16

Re: no .bash_hostory file was found in user home folder

2013-10-19 Thread Muhammad Yousuf Khan
just sharing, root user got the .bash_history file. i can see all the commands with no issues with root user only On Sun, Oct 20, 2013 at 3:36 AM, Muhammad Yousuf Khan sir...@gmail.comwrote: :~$ ls -la total 8492368 drwxr-xr-x 3 ykhan ykhan 4096 Aug 16 04:00 . drwxr-xr-x 12 root

Usage of grep - Was: no .bash_hostory file was found in user home folder

2013-10-19 Thread Ralf Mardorf
On Sun, 2013-10-20 at 03:42 +0500, Muhammad Yousuf Khan wrote: cat /etc/passwd | grep ykhan ykhan:x:19000:19000:ykhan,,,:/home/ykhan:/bin/bash [rocketmouse@archlinux ~]$ grep rocketmouse /etc/passwd rocketmouse:x:1000:1000::/home/rocketmouse:/bin/bash IOW if you use grep,

Re: Usage of grep - Was: no .bash_hostory file was found in user home folder

2013-10-19 Thread Markus Falb
On 20.Okt.2013, at 00:51, Ralf Mardorf wrote: On Sun, 2013-10-20 at 03:42 +0500, Muhammad Yousuf Khan wrote: cat /etc/passwd | grep ykhan ykhan:x:19000:19000:ykhan,,,:/home/ykhan:/bin/bash [rocketmouse@archlinux ~]$ grep rocketmouse /etc/passwd