creating a new user


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers creating a new user
# 1  
Old 05-04-2004
creating a new user

I have AIX 5.1
I have created a user manually in the /etc directory.
Then I created his home directory "mkdir /home/fharvey"
then I changed ownership "chown fharvey /home/fharvey"
set his password "passwd fharvey"

When I log in as him I get "user is required to change password. "when I change it I get knocked out.
This my first time doing it in AIX but I have done this in Linux a couple hundred times I am not sure what I might be missing.
Thanks
# 2  
Old 05-04-2004
logon

Thanks that worked
now on to my next delema somehow one of the other users is set up so that when they login they go directly to our business application called SXE . So basicly I want to the users path to go to a application. where would I start to get this done?
Or is this the wrong forum for this question?
thanks
# 3  
Old 05-04-2004
logon

I would like when the user logs in that he is brought directly to the login screen for our business application.
which would that apply to this one?

"Change the login shell to your application, so that it is executed instantly when you log in."
# 4  
Old 05-04-2004
depending on your shells default profile that is where you would add the portion to launch your application.

IE: if i was useing the ksh shell

in my /homes/user1 directory i would create a file called .profile and in this .profile i would put in the line that says "/usr/local/bin/app_to_run" then save the file.

so when user1 logs in the profile says to launch the application automaticly.

this is very common.
# 5  
Old 05-04-2004
found script

I am using the ksh shell also

I found a .profile in another users profilethe file name looked like this.
.profile -> /rd/opsys/profile

I could not copy this whole name it said the path was wrong so I copied the ".profile' by itself to another users directory and the file name moved but now when I CAT the file in either directory it is gone even in the one I copied it from. The name is still there but when I cat it nothing is in the file.
What did I screw up? I used the CP command to copy
Thanks.
# 6  
Old 05-04-2004
the -> means the .profile is a link to that file.

check out the man page for ln
# 7  
Old 05-04-2004
.profile -> /rd/opsys/profile

is a symbolic link. There is a file called /rd/opsys/profile. And there is a local symbilic link to the file. The symbolic link just points to the other file.

Can you do "cat /rd/opsys/profile"? If so you are probably ok.

cd to the users home directory. Then type:

ln -s /rd/opsys/profile .profile

to create the symbolic link. If you do this to a second user, both users are using the same copy of the file. Sometimes that can be a good thing, but be aware of it.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Prevent user from creating new user from his login

Hi Experts, Need your support Redhat 6.5 I want to create a user with all(read, write, execute) privileges except that user should not be able to create any new user from his login to perform any task. (10 Replies)
Discussion started by: as7951
10 Replies

2. UNIX for Dummies Questions & Answers

Creating a new directory by getting input from user

Hi All, I am really new to Linux.I am trying to write a script for creating a new directory by getting input of folder name from the user.Please help me in this regard. #! /bin/bash echo "Enter name of dir":$filename mkdir -p $filename When executing this I am getting following error ... (13 Replies)
Discussion started by: Pradeep_1990
13 Replies

3. UNIX for Dummies Questions & Answers

Creating files with New User

Hello All, I just created a new user on a server running SLES 11, and I created the user using the command below: # useradd -G nagios scpuser But whenever I create a file or directory while logged in as this user it creates the file's ownership permissions as "scpuser:users" instead of it... (2 Replies)
Discussion started by: mrm5102
2 Replies

4. SuSE

creating user on SUSE Linux

Hi I need to create a user who can have access on only one folder. for example I created a user "test" . he should have access only on folder /testfolder. The problem is that the user will mostly use FileZilla to ftp his files in the testfolder. In the fileZilla , i want him to be... (21 Replies)
Discussion started by: SystemEng
21 Replies

5. Solaris

Creating user in solaris

Hi all, I logged in as root in solaris machine and made an attempt to create a user ,i am getting the following error message pls help me to resolve this issue bash-3.00# useradd -d /home/kalyan -m -s /bin/sh kalyan UX: useradd: ERROR: Unable to create the home directory: Operation not... (2 Replies)
Discussion started by: kalyankalyan
2 Replies

6. Shell Programming and Scripting

Creating user accounts

Hi, I have written a program using shell scripting. When you run the file it will asks you to enter the user name, if the user exists it says " user exists " if not it will displays like " user doesnt exist" and then asks you like " do you want to add user with options Yes or No " if you say... (1 Reply)
Discussion started by: vishwaprasad
1 Replies

7. UNIX for Dummies Questions & Answers

Creating user accounts

Hey everyone I am new to the forums and to Unix. I am currently taking a class on Unix, our teacher posed the question to us How do u create a user account without using GUI or command? We are currently running Knoppix version of Unix and for the life of me I can't figure out how this is possible.... (0 Replies)
Discussion started by: Redditt90kg
0 Replies

8. AIX

Limiting length of user in while creating user

Hi all, I am a newbe to aix 5.2. I want to specify the characters used by users while creating user in aix like specifying the length of the password should i use some sript for that if it is then please let me know how to do this if yes give me the link for the scripts. Thanks in advance ... (2 Replies)
Discussion started by: Satya Mishra
2 Replies

9. UNIX for Advanced & Expert Users

creating user accounts in AIX

Hello all: I am new to UNIX and I am given the responsibility of administering a UNIX machine recently. The system is a IBM AIX 3.1. As a part of my duties I recently created some user accounts using "smit". It looked as if everything went well. But, after creating the account, I logged into... (3 Replies)
Discussion started by: pdepa
3 Replies

10. UNIX for Dummies Questions & Answers

creating a new user

i just installed netBSD, and i want to know how to create a new user account. i understand that netBSD doesn't come with the tools to do that, so i downloaded a user utility (mebbe i'm wrong about netBSD) but the problem is, i don't know how to read files off floppy disks. (i'm quite new to unix)... (3 Replies)
Discussion started by: Newbie4ever
3 Replies
Login or Register to Ask a Question