In most versions of unix the maximum length of the username field is 8 characters. Longer username fields can be allowed but the effects are unpredictable.
See on your unix system:
It could be quite different for your Linux.
Btw. If you have the "fwtmp" utility it should display whatever is in the wtmp file.
writing a script that will check every 5 seconds whether a particular user has
logged into the system
# Determine if someone is logged on
# Version 4.0
if
then
echo “ Incorrect number of arguments”
echo “Usage: $ ison4 <user>”
else
user=“$1”
if who | grep “$user” > /dev/null
then... (2 Replies)
Hi
I am using mailx to send email and am wondering if there is a way I can send the email from a different user than the user logged in.
something like do-not-reply@xyz.com
Thank you. (1 Reply)
Hello,
i know who command gives you the time when particular user logged in. And subtracting today's date and time from the one found in who we can get how much time user logged in. But this can get very much clumsy as we can't subtract date directly in unix . Is there any other way or command... (4 Replies)
Hi, first time poster, newbie to Bash. I'm looking to get the username of the user who's been logged into a computer the most / longest.
I am new to Bash but am familiar with other scripting languages, mainly PHP. So I have a general idea about how to go about the script logic, but don't know... (13 Replies)
How do I confirm if a user logged in, is remote or local? In the case if the user is remote, how to be sure what authentication/method is it using, like LDAP, NIS or other? (2 Replies)
Hey guys
I need a script that reads a login name and verifies if that user is currently logged in
i have found few commands like "who" and "users"
but i wonder how can i verify it that login name is logged in or not? (3 Replies)
hi!
How can I find into:
/var/log/messages.4
/var/log/messages.3
/var/log/messages.2
/var/log/messages.1
/var/log/messages
The last user do a login? (for example user1)
My idea is to search by the pattern "Accepted password for" buy I necessary search into all files first and in the... (2 Replies)
Discussion started by: guif
2 Replies
LEARN ABOUT REDHAT
smbstatus
SMBSTATUS(1)SMBSTATUS(1)NAME
smbstatus - report on current Samba connections
SYNOPSIS
smbstatus [ -P ] [ -b ] [ -d ] [ -L ] [ -p ] [ -S ] [ -s <configuration file> ] [ -u <username> ]
DESCRIPTION
This tool is part of the Samba suite.
smbstatus is a very simple program to list the current Samba connections.
OPTIONS -P If samba has been compiled with the profiling option, print only the contents of the profiling shared memory area.
-b gives brief output.
-d gives verbose output.
-L causes smbstatus to only list locks.
-p print a list of smbd(8) processes and exit. Useful for scripting.
-S causes smbstatus to only list shares.
-s <configuration file>
The default configuration file name is determined at compile time. The file specified contains the configuration details required by
the server. See smb.conf(5)
for more information.
-u <username>
selects information relevant to username only.
VERSION
This man page is correct for version 2.2 of the Samba suite.
SEE ALSO smbd(8) and smb.conf(5)AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of
Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0
release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter
19 November 2002 SMBSTATUS(1)