Problems managing user


 
Thread Tools Search this Thread
Operating Systems Solaris Problems managing user
# 1  
Old 10-16-2010
Problems managing user

I installed Solaris 10 in an old Dell computer given to me. The filesystem is ZFS (Default).

The problem is that after logging in as root (first login) I wanted to add a user : n2jkw.

I added the user at /export/home/n2jkw

BTW, /export/home is where the 150G extra Hard Drive is mounted to. The system files reside in the 20G (boot) Hard Drive.

When I try to login to the local machine I get a black screen.

I wanted to do this to learn about Solaris-10 because I had a class on Solaris at the local Community College over a year ago... another is because I do like to challenge myself when I do things and the only way to make things "stick" is by hands on experience.

I am a computer major at University of Phoenix, but Software Engineering does not require Unix...but why not learn it anyway.

Thank all in advance...

Javier Maldonado

---------- Post updated at 01:29 PM ---------- Previous update was at 01:28 PM ----------

The black screen happens when logging in as n2jkw. As root, the computer loads to the Java desktop environment.

Sorry I was not specific.

Javier Maldonado

---------- Post updated at 01:53 PM ---------- Previous update was at 01:29 PM ----------

I do get a console if I log in as n2jkw from a remote computer and get to my home directory /export/home/n2jkw.

Again, my knowledge is limited at best.

Thanks again.

Javier Maldonado
# 2  
Old 10-16-2010
tell us how you created the user... also give outputs of:

Code:
ls -l /export
ls -l /export/home
cat /etc/passwd
df -h


Last edited by DukeNuke2; 10-16-2010 at 05:28 PM..
# 3  
Old 10-16-2010
and:
Code:
ls -la ~n2jkw

# 4  
Old 10-17-2010
Here is the output that you requested. Thank you!

Code:
# ls -l /export
total 4
drwxr-xr-x   4 root     root         512 Oct 14 13:05 home
drwxr-xr-x   3 root     root         512 Oct 12 05:44 home0
# ls -l /export/home
total 18
drwx------   2 root     root        8192 Oct 12 05:29 lost+found
drwxr-x---   5 n2jkw    100          512 Oct 16 06:05 n2jkw
# cat /etc/passwd
root:x:0:0:Super-User:/:/sbin/sh
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
n2jkw:x:100:101:Javier Maldonado:export/home/n2jkw:/sbin/sh
# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d0s0        5.1G   2.8G   2.3G    56%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   766M   876K   766M     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                       5.1G   2.8G   2.3G    56%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   766M    52K   766M     1%    /tmp
swap                   766M    24K   766M     1%    /var/run
/dev/dsk/c0d1s7        147G    64M   145G     1%    /export/home0
/dev/dsk/c0d0s7         13G    93M    13G     1%    /export/home
/vol/dev/dsk/c1t0d0/s10_1009_software_companion
                       649M   649M     0K   100%    /cdrom/s10_1009_software_companion
# ls -la ~n2jkw
~n2jkw: No such file or directory
#

# 5  
Old 10-17-2010
This is incorrect:
Code:
n2jkw:x:100:101:Javier Maldonado:export/home/n2jkw:/sbin/sh

Should be
Code:
n2jkw:x:100:101:Javier Maldonado:/export/home/n2jkw:/bin/ksh

The home directory is missing a leading "/". The shell change is just an advice as "/sbin/sh" isn't designed to be anyone's shell.
This User Gave Thanks to jlliagre For This Post:
# 6  
Old 10-17-2010
Ok I will make the change and post the results. BTW, anything else that jumps at you looking at the output?

Thanks
Javier Maldonado
# 7  
Old 10-17-2010
Quote:
Originally Posted by jlliagre
and:
Code:
ls -la ~/n2jkw

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. HP-UX

Problems creating and accessing with user

Hi, I have created the user 'mastersa' in several servers. I need to change the user ID to '0'. However, after doing this, I am not able to login (Access denied). Even after I change the password, I still get this error. Why is this? Also, when I attempt to delete the user account, I get... (5 Replies)
Discussion started by: anaigini45
5 Replies

2. Windows & DOS: Issues & Discussions

Problems With User Creation Script

Hello everyone, I've been attempting to make a program which creates user accounts from a file which contains the usernames required. It also checks if the directory of the username exists in the C:\Users directory and then is going to give the option to delete the directory, or rename it, this... (1 Reply)
Discussion started by: charlieabee
1 Replies

3. Programming

Managing and using PTSes

Hello. I need to simulate a few serial links (doing a simulation of an application for a robot) and found socat which, at least with minicom, is working flawlessly. I would really like to make pts static: ie same numbers between reboots, and automatic (not me opening terminals and leaving... (2 Replies)
Discussion started by: erupter
2 Replies

4. UNIX for Dummies Questions & Answers

Problems with network user account /Library/ Folders

I am a IT tech at a business which has a 100 staff working in different departments and in a windows 7 / Mac 10.6 enviorment. I have recently been having issues with users not being able to reopen Siberlius 6 files due to a corrupted file within there library folder. The only way to fix this is to... (2 Replies)
Discussion started by: field1024
2 Replies

5. What is on Your Mind?

Managing Geeks

Hi, I recently found this article in computerworld and I think it is very true - at least in my company ... what do you guys think - is the author right? Is it ignorant management that makes us IT people seem to be anti-social and weird? Please share your thoughts Kind regards zxmaus (5 Replies)
Discussion started by: zxmaus
5 Replies

6. HP-UX

FTP user files permissions problems!!!

Hi, I have a problem with my ftp accounts whereby if any external ftp party connects to our server and puts any file in a directory on our server. The file permissons are always -rw-r----- and no read for others. I have adjusted the ftp user .profile to include 'umask 022' but this only works... (3 Replies)
Discussion started by: budrito
3 Replies

7. UNIX for Advanced & Expert Users

Managing nodes???

Does anyone know something about this? I have no idea what it means and how to do it. but if anyone can give me and explanation and also point me to a website, i'd really appreciate it (5 Replies)
Discussion started by: TRUEST
5 Replies

8. UNIX for Advanced & Expert Users

best solution for managing many nameservers

Hello, i was searching around for good solution for managing many nameservers to add the records on the slave servers and update them and if possible some web-based manegment for non-experianced customers. anyone has an idea where can i find such solution? (1 Reply)
Discussion started by: Bashar
1 Replies

9. UNIX for Dummies Questions & Answers

managing users

I need to setup several accounts on a solaris system. (passwd,shadow,group) My question is : How can I create a group which can access a machine, but only in certain directories? (4 Replies)
Discussion started by: SmartJuniorUnix
4 Replies
Login or Register to Ask a Question