The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
default unix accounts kandy19 UNIX for Dummies Questions & Answers 1 05-14-2008 10:17 PM
COPASI 4.4 (Build 26) (Default branch) iBot Software Releases - RSS News 0 05-08-2008 06:10 PM
Widelands build-12 (Default branch) iBot Software Releases - RSS News 0 04-05-2008 12:10 PM
COPASI 4.3 (build 25) (Default branch) iBot Software Releases - RSS News 0 03-26-2008 09:40 PM
Ingres 9.3.0 build 119 (Default branch) iBot Software Releases - RSS News 0 03-21-2008 08:40 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-09-2007
fredao fredao is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 59
what is the default password for those build-in accounts?

what is the default password for those build-in accounts, such as adm, sys, dhcp, oracle, guest?

if not set, can they be used to login? is that a security problem? how are they designed to be used?

thanks!
  #2 (permalink)  
Old 01-09-2007
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,929
It's difficult to lump those all together since that includes a guest account and, unless I'm mistaken, an admin account. Talk about polar extremes. But system accounts like dhcp and oracle are generally configured as non-login accounts: no password, no home, not even a shell. Programs using this uid switched to it with a privileged setuid() call rather than any sort of login process.
  #3 (permalink)  
Old 01-09-2007
fredao fredao is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 59
Quote:
Originally Posted by Corona688
It's difficult to lump those all together since that includes a guest account and, unless I'm mistaken, an admin account. Talk about polar extremes. But system accounts like dhcp and oracle are generally configured as non-login accounts: no password, no home, not even a shell. Programs using this uid switched to it with a privileged setuid() call rather than any sort of login process.
I just used an oracle account to login into a solaris system with a password yesterday however.
  #4 (permalink)  
Old 01-09-2007
_Spare_Ribs_'s Avatar
_Spare_Ribs_ _Spare_Ribs_ is offline
Registered User
  
 

Join Date: Dec 2006
Location: /dev/null
Posts: 72
you can look in the /etc/passwd file and that will show you what home directory, default shell and so on is set for each user. It will also let you know whether the user is allowed to login or not.

Here is a sample from my /etc/passwd file

Code:
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
ftp:x:40:49:FTP account:/srv/ftp:/bin/bash
postfix:x:51:51:Postfix Daemon:/var/spool/postfix:/bin/false
sshd:x:71:65:SSH daemon:/var/lib/sshd:/bin/false
ntp:x:74:65534:NTP daemon:/var/lib/ntp:/bin/false
as you can see the default shell when they login is /bin/false which means they have no shell access. I suspect yours would look much the same although depnding on your version you may see /sbin/nologin as the default shell, all does the same thing essentially
  #5 (permalink)  
Old 01-09-2007
fredao fredao is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 59
Quote:
Originally Posted by _Spare_Ribs_
you can look in the /etc/passwd file and that will show you what home directory, default shell and so on is set for each user. It will also let you know whether the user is allowed to login or not.

Here is a sample from my /etc/passwd file

Code:
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
ftp:x:40:49:FTP account:/srv/ftp:/bin/bash
postfix:x:51:51:Postfix Daemon:/var/spool/postfix:/bin/false
sshd:x:71:65:SSH daemon:/var/lib/sshd:/bin/false
ntp:x:74:65534:NTP daemon:/var/lib/ntp:/bin/false
as you can see the default shell when they login is /bin/false which means they have no shell access. I suspect yours would look much the same although depnding on your version you may see /sbin/nologin as the default shell, all does the same thing essentially
then how can I use these accounts? how are they usually used?
  #6 (permalink)  
Old 01-09-2007
_Spare_Ribs_'s Avatar
_Spare_Ribs_ _Spare_Ribs_ is offline
Registered User
  
 

Join Date: Dec 2006
Location: /dev/null
Posts: 72
These accounts are not for logging in with and hence that is why they have their login shells set to /bin/false. They are used by the daemons that they relate so sshd is used by the SSH daemon as the description says.

If you login as root and superuser to them

Code:
su sshd
you will see nothing happens.

As for you being able to login with Oracle, this is not unusual. It is sometimes used by DBAs to go in and use SQL Plus as it allows access to Orcale's components.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0