02-28-2013
sudo -i is not actually a system login. /bin/login is not involved, so the motd doesn't happen.
When you login to an actual terminal username prompt, you're talking to /bin/login.
10 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Is there an issue with it? (2 Replies)
Discussion started by: Spetnik
2 Replies
2. Shell Programming and Scripting
I need to replace the current /etc/motd text file with a new motd across 30+ servers.
Which is the best way to do this? Shell script? sed?
Does anyone have an example I can use?
Thanks in advance. Unix people are the best!!! :) (2 Replies)
Discussion started by: antalexi
2 Replies
3. UNIX for Dummies Questions & Answers
I have a site, www.mySite.com
I have a folder where pages are served from, htdocs/
I have a folder containing one site at htdocs/drupal/. I'd like to be able to go to www.mySite.com and see the index.php page within the drupal folder, but instead I see a directory listing:
drupal
phpBB3
... (9 Replies)
Discussion started by: kumakuma
9 Replies
4. Solaris
Hi Gurus out there...
I am pondering over a situation where I have non-root access (user account), where I am trying to determine paths (including multipaths) on a host.
"luxadm display" seems very appropriate, but requires root access.
Is there anyway I can get the FC path information?
... (1 Reply)
Discussion started by: verisund
1 Replies
5. IP Networking
I have a Linux server connected to the Internet like so:
Server (66.77.88.130) -> /29 VLAN Gateway (66.77.88.129) -> Core Router (64.0.0.1) -> Internet
If I run a traceroute from my server to an arbitrary site on the internet I get a result like this:
# traceroute some-other-server... (2 Replies)
Discussion started by: ramnet
2 Replies
6. Homework & Coursework Questions
im making c code in linux and im having problems with one command, id should bring up a list but instead id doesnt do nothing, there are no error's, can anyone solve whats wrong ?
void environ()
{
extern char **environ;
int i=0;
for (i = 0; environ !=NULL;i++)
{
... (1 Reply)
Discussion started by: figureout
1 Replies
7. UNIX for Advanced & Expert Users
I'm trying to compile vim73 with the Motif Toolkit.
./configure --enable-gui=motif
make
./src/vim -g
Vim runs in a window, without the standard toolbar and
menu bar.
I tried to recompile with
./configure --enable-gui=gnome2It compiled with GTK2 toolkit, but still no menubar, nor toolbar.... (0 Replies)
Discussion started by: mghis
0 Replies
8. Emergency UNIX and Linux Support
Hi guys.
I have installed Acronis disk director in windows XP and allocate some free space to install Debian beside fedora.
after completion i rebooted and now grub is in command line mode and does not show the menu list.
(I didn't remove the fedora partition. I just allocate some space from... (1 Reply)
Discussion started by: majid.merkava
1 Replies
9. Red Hat
I've created a Perl daemon that needs to send an email when an error/shutdown occurs. I use the Perl Email::Valid module and that uses sendmail. When I run the script as a regular user, the email is sent with no issues. When I run the script as the root user, I get the following message in... (1 Reply)
Discussion started by: OldManEd
1 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a cronjob that mounts machines every 15 minutes.
sudo mount -t cifs -o username=Ren_user,password=AIB#1109$,nounix,bg,sec=ntlmssp //10.204.129.233/Desktop /mnt/clinical/234mac
When I open a new shell and ls /mnt/clinical/234macto the mount point it is blank, but when I do the... (7 Replies)
Discussion started by: jdilts
7 Replies
LOGIN(1) General Commands Manual LOGIN(1)
NAME
login - sign on
SYNOPSIS
login [ username ]
DESCRIPTION
The login command is used when a user initially signs on, or it may be used at any time to change from one user to another. The latter
case is the one summarized above and described here. See `How to Get Started' for how to dial up initially.
If login is invoked without an argument, it asks for a user name, and, if appropriate, a password. Echoing is turned off (if possible)
during the typing of the password, so it will not appear on the written record of the session.
After a successful login, accounting files are updated and the user is informed of the existence of .mail and message-of-the-day files.
Login initializes the user and group IDs and the working directory, then executes a command interpreter (usually sh(1)) according to speci-
fications found in a password file. Argument 0 of the command interpreter is `-sh.
Login is recognized by sh(1) and executed directly (without forking).
FILES
/etc/utmp accounting
/usr/adm/wtmp accounting
/usr/mail/* mail
/etc/motd message-of-the-day
/etc/passwd password file
SEE ALSO
init(8), newgrp(1), getty(8), mail(1), passwd(1), passwd(5)
DIAGNOSTICS
`Login incorrect,' if the name or the password is bad.
`No Shell', `cannot open password file', `no directory': consult a programming counselor.
LOGIN(1)