LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-26-2013, 02:51 PM   #1
jayparker
LQ Newbie
 
Registered: Nov 2013
Posts: 5

Rep: Reputation: Disabled
creating new user


my version :
SunOS 5.10 Generic_147441-05 i86pc i386 i86pc



I created a new user but when I try to login as that user I cant. I have tried via putty and via ftp.

this is what i did.logged in as root then :

groupadd cassg
useradd cass
passwd cass -- i set pswd to abc123
usermod -g cassg cass

chown -R cass:cassg /files/Cass
(this is the folder i need them to access)

mkdir -p /export/home/cass
chown cass:cassg /export/home/cass
usermod -d /export/home/cass cass

chmod -R 0700 /export/home/cass

try to login :
login as: cass
Using keyboard-interactive authentication.
Password:
Access denied
Using keyboard-interactive authentication.
Password:



ahhh ! any ideas ?
thank you,
jay

Last edited by jayparker; 11-26-2013 at 02:54 PM.
 
Old 11-26-2013, 03:01 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
I would take a quick look at your log files. What does your secure.log show for the reason of the sshd login failure?
 
Old 11-26-2013, 03:10 PM   #3
jayparker
LQ Newbie
 
Registered: Nov 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
can you tell me where that log would be ?
 
Old 11-26-2013, 03:20 PM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,239
Blog Entries: 11

Rep: Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287
/var/log/auth.log or
/var/log/secure
 
Old 11-26-2013, 03:25 PM   #5
jayparker
LQ Newbie
 
Registered: Nov 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
in /var/log i do not have an auth.log only a authlog but it has 0 file size.
I also do not have a /var/log/secure
 
Old 11-26-2013, 03:27 PM   #6
jayparker
LQ Newbie
 
Registered: Nov 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
this is whats there

VDCSL2623 > pwd
/var/log
VDCSL2623 > ls -l
total 9495
-rw-r--r-- 1 root root 44214 Oct 17 15:58 Xorg.0.log
-rw-r--r-- 1 root root 44340 Oct 17 15:57 Xorg.0.log.old
-rw------- 1 root sys 0 Sep 3 2009 authlog
-rw-r--r-- 1 root other 27 Oct 27 2009 brlog
-rw-r--r-- 1 root root 1418 Jun 7 2010 install_stb-v5.2.log
dr-------- 3 root root 3 Mar 21 2013 opsware
drwxr-xr-x 2 root sys 2 Oct 27 2009 pool
-rw-r--r-- 1 root root 4611568 Nov 26 15:04 snmpd.log
drwx------ 3 root 501928258 4 Jun 15 2011 sudo-io
-rw------- 1 root 509297 15892 Nov 26 16:20 sudo.log
drwxr-xr-x 2 root sys 5 Oct 27 2009 swupas
-rw-r--r-- 1 root other 1150 Jun 7 2010 sysidconfig.log
-rw-r--r-- 1 root sys 0 Mar 22 2011 syslog
-rw-r--r-- 1 root sys 8747 Jun 14 2010 syslog.0
-rw-r--r-- 1 root root 3837 May 12 2012 vmware-tools-guestd
drwxr-xr-x 3 root sys 3 Oct 27 2009 webconsole
 
Old 11-26-2013, 05:29 PM   #7
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Is sshd installed and running?


Also it could be in your syslog log, but looks like that was recently rotated so it will probably be in syslog.0 although what you could do to see whats happening in real time is do a tail -f /var/log/syslog and attempt to log in. Also if sshd is running you should be able to go into /etc/sshd/sshd_config and set the LogLevel and SysLogFacility.

You will also have your syslog configuration which controls this.

So for my /etc/syslog.conf I have:

authpriv.* /var/log/secure

And in my /etc/sshd/ssdh_config I have:

SyslogFacility AUTHPRIV
#LogLevel Info


LogLevel Info is commented out but in your case since you are debugging set it to be on by uncommenting it. This will tell the system to log all messages from level of info on up to emergency and log them as authpriv which your syslog.conf has set to log to /var/log/secure.


http://linoxide.com/security/enable-sshd-logging/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create user without creating user home directory aksharb Linux - Software 1 05-12-2011 04:21 PM
Creating New User IwannaSlack Slackware 15 07-16-2008 01:06 PM
what is the command to make a user change their password after creating a new user? naweenio Linux - Newbie 7 01-05-2005 07:07 AM
Creating a New User CT Pennell Linux - Newbie 1 02-03-2003 10:41 PM


All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration