enable a user via remsh


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers enable a user via remsh
# 1  
Old 09-09-2003
enable a user via remsh

hi guys,

has anybody a solution to enable a user via remsh (in a script)?

i know only this:

remsh $i /usr/bin/passwd -r files -d USERNAME

but on this option the user must enter a new passwd.

is it possible to set the passwd in the string or in a file and set a parameter into the string which read this passwd?


many thx

cheers
# 2  
Old 09-09-2003
If that's the case, try this:

remsh $i /usr/bin/passwd -r files -d USERNAME <<PASSWD
PasswdHere
PASSWD
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Runtime Error Enable user directory apache

Hi I am exactly according to this link CentOS 6 - Apache httpd - Enable Userdir : Server World I Enabled userDirectory Server version: Apache/2.2.15 CentOS release 6.8 (Final) But Iget this Error Forbidden You don't have permission to access /~mn/index.html on this server Goal... (2 Replies)
Discussion started by: mnnn
2 Replies

2. Solaris

Enable FTP for root user in Solaris 10

I am not able to get ftp working for Solaris 10 for root user. I am getting login failed error. 331 Password required for root. Password: 530 Login incorrect. Login failed. Tried following things already. 1. SFTP works ok, still would like to know why FTP is not working (curious). 2.... (5 Replies)
Discussion started by: webkid
5 Replies

3. UNIX for Dummies Questions & Answers

$USER is not set in remsh but works fine via ssh login

1) ssh a@b echo $USER it display the correct value as a (even though i have not defined it in .profile) 2) remsh b -l a echo $USER it does not display the value as a (variable is not set any idea why $USER variable is not initialized when i login via remsh or rlogin but shows the... (10 Replies)
Discussion started by: reldb
10 Replies

4. Ubuntu

How to enable guest user in ubuntu 10.04

Hi, do you know how to enable guest user in ubuntu lucid 10.04 ? Regards (1 Reply)
Discussion started by: dagigg
1 Replies

5. UNIX for Advanced & Expert Users

To enable sqlplus for a user in unix

Hi I added a new user using root... now i need to enable sqlplus for that particular user... when i give sqlplus schemaname/pwd it gives $ sqlplus -bash: sqlplus: command not found PFB the OS am using $ uname -a Linux gs-portal-04 2.4.21-57.ELsmp #1 SMP Wed Apr 23... (4 Replies)
Discussion started by: Whiteboard
4 Replies

6. UNIX for Dummies Questions & Answers

Enable user quota

hi! i would like to enable user quota on my system (FreeBSD 6.2) i've check on enabling user quota here but i still confuse with fstab it shows there: /dev/da1s2g /home ufs rw,userquota 1 2 but my current /etc/fstab : # Device Mountpoint FStype Options ... (1 Reply)
Discussion started by: rdns
1 Replies

7. UNIX for Dummies Questions & Answers

regular user - enable printer - aix unix

how can I let a regular user enable a printer? (0 Replies)
Discussion started by: naes
0 Replies

8. Linux

How to Enable TELNET for root user

How to Enable TELNET for root user in Linux. (3 Replies)
Discussion started by: sakthi_13
3 Replies

9. UNIX for Dummies Questions & Answers

How to enable ifconfig to unprivileged user?

Hello, everyone. I have installed Red Hat 9.0 and Mandrake 9.1 on my computer. I could use a unprivileged user account to run "ifconfig" directly. But when I was using Red Hat, either root or other accounts could run "ifconfig" --- the error messege said: "bash: ifconfig: command not found". I... (5 Replies)
Discussion started by: HOUSCOUS
5 Replies
Login or Register to Ask a Question