Problems managing user


 
Thread Tools Search this Thread
Operating Systems Solaris Problems managing user
# 8  
Old 10-17-2010
@DukeNuke2: Hmm, what makes you feel a "/" is need here:
Code:
ls -la ~/n2jkw

?

It actually breaks what I was looking for which is defined here: Shell Command Language
This User Gave Thanks to jlliagre For This Post:
# 9  
Old 10-17-2010
got it...
# 10  
Old 10-17-2010
Duke:

# Ls -la ~/n2jkw

gives me the same results: No such file or directory.

BTW, is this where the user configuration files resides?

Javier Maldonado
# 11  
Old 10-17-2010
Quote:
Originally Posted by n2jkw

BTW, is this where the user configuration files resides?
this is where they SHOULD be... if you created the user with the right options... and the missing / in the passwd file shows that you don't... maybe you should remove the user and create it again with the "useradd" command.
This User Gave Thanks to DukeNuke2 For This Post:
# 12  
Old 10-17-2010
Quote:
Originally Posted by n2jkw
# Ls -la ~/n2jkw
gives me the same results: No such file or directory.
That should be
Code:
# ls -la ~n2jkw

and that would only work with a POSIX compliant shell like ksh or bash but I'm afraid you are using /sbin/sh which isn't.
Quote:
BTW, is this where the user configuration files resides?
No, that's a shortcut to the user home directory.
# 13  
Old 10-17-2010
Ok Duke..

I will remove the user and then use the useradd command.

Keep you posted....thank you guys...great school!Smilie

Javier Maldonado
# 14  
Old 10-17-2010
Duke and jlliagre:

I used userdel to get rid of n2jkw.

I revized the passwd file to confirm that it was removed, and it was.

Next I used useradd n2jkw

Next vipw (I did not modify the files, passwd and shadow file. I just look at them even though I invoked an editor)Smilie

I confirmed that user n2jkw was created, it was created and the default directory given by system was /home/n2jkw, but the directory was not created by the system.Smilie

Next, vipw

Modified file passwd for user n2jkw: replaced home directory like this --> /export/home/n2jkw as directory for user n2jkw and typed my full name in the comment space.

Did not modify shadow file.

Next: #passwd n2jkw (I entered new password for user)

this is the result:

$ 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 2
drwxr-xr-x 11 n2jkw 101 512 Oct 15 23:58 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:1:Javier Maldonado:/export/home/n2jkw:/bin/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 701M 884K 700M 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 721M 21M 700M 3% /tmp
swap 700M 24K 700M 1% /var/run
/dev/dsk/c0d1s7 147G 64M 145G 1% /export/home0
/dev/dsk/c0d0s7 13G 119M 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
$

Logged off root and logged in as n2jkw


!SUCCESS!SmilieSmilieSmilieSmilieSmilie

It all worked.

Now I have questions.....Smilie

Why directory /home/n2jkw was not created @ useradd n2jkw....?

Is this because the ZFS filesystem did not allowed it?

How do I tell the system to add users @ /export/home by default?

BTW, this whole reply was in the actual machine that we are working with and logged as n2jkw.....Smilie way to go guys...Smilie

Javier Maldonado
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