![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to mount disk for non-root accounts? | siegfried | UNIX for Dummies Questions & Answers | 11 | 03-17-2007 07:36 PM |
| How to mount disk for non-root accounts? | siegfried | UNIX for Dummies Questions & Answers | 4 | 08-28-2006 01:47 AM |
| create user like root | pascalbout | AIX | 8 | 01-25-2006 03:12 AM |
| How can l create a user that as all the Attribute & Privilages of root | kayode | Linux | 6 | 02-16-2005 03:24 AM |
| create or modify user account to have same access as root | xadamz23 | UNIX for Dummies Questions & Answers | 6 | 08-07-2003 04:59 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all.
After installing ssh on a server, i'd like to create a user with root privileges. My problem is that after creating a user rootssh (uid=0, gid=20, /home/rootshh), i make rootssh's ssh keys. The problem is that normally the ssh-keygen should create the keys under $HOME/.ssh/, and actually it creates 'em under /.ssh ( / being my root home, this cannot be modified). How am i supposed to create the user? ( i'm lokking for a Hp and Solaris solution...) Thanx all |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
That's the pain with having more than one root user... Since the UID=0, it'll either take set your variable to root's (like USER, LOGNAME, HOME...), or just plain assume you're root based on UID=0...
You can try setting the variables manually via the .profile / .login, but it's usually just better to use su / sudo. Hope this helps. |
|
#3
|
|||
|
|||
|
In fact, the creation of this account is do avoid the use of root's passwd. We are trying to avoid any pure root use.
Would i have to set HOME to be /home/rootssh in the .profile? |
|
#4
|
||||
|
||||
|
Yes, you could do that...
when logged in as the "real" root, type "env", and look for any reference that you might need to set manually in the .profile. For example, on a test Linux box here, I'd have to change: USER LOGNAME HOME And maybe make double sure that "." isn't in the PATH. So, why are you giving out root accounts to people you don't want to have the root password? They have the equivilent now, and could even change root's passwd now. You really might want to look into "sudo" for your needs... |
|
#5
|
|||
|
|||
|
Yes surely, but i'm not the payer!
I just checked to env for both root and rootssh, HOME is correctly positionned for both. Rootssh's home is /home/rootssh and root is /. WHya doesn't ssh-keygen see the difference? |
|
#6
|
|||
|
|||
|
This may or may not be helpful, but I downloaded openssh from http://www.sunfreeware.com and when I run ssh-keygen it asks me for the location to store the rsa1 keyfile. I specify the path where I want to store it, then change the sshd-config file to reflect the location of the keyfile. I use a secondary UID=0 account (not root) and I can ssh at will.
Obviously, the binaries from sunfreeware will only run on Solaris, but that's half your problem. |
|
#7
|
|||
|
|||
|
that's surely half of my problem! but are you creating your box's rsa1 keys, or your user keys?
Could you give me that particular line in your sshd_config file? |
|||
| Google The UNIX and Linux Forums |