LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-30-2005, 01:32 AM   #1
sorno
LQ Newbie
 
Registered: Aug 2004
Posts: 21

Rep: Reputation: 15
bash shell script problem


i know how to use <read> to get user input, but is there anyway that when user typing input, it wont show up in the screen?like typing password in login screen
another question, is it anyway to setup so that a normal user can become a superuser wthout typing the password?i tried to make a file the contain the passsword, then do:
cat password|su
su < password
both doesnt work.
 
Old 07-30-2005, 06:02 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
Re: bash shell script problem

Quote:
Originally posted by sorno
i know how to use <read> to get user input, but is there anyway that when user typing input, it wont show up in the screen?
Use the -s (silent) option for the read command.

Quote:
like typing password in login screen
another question, is it anyway to setup so that a normal user can become a superuser wthout typing the password?i tried to make a file the contain the passsword, then do:
cat password|su
su < password
both doesnt work.
Use "sudo" for that.
See this thread
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash shell script moodupani Linux - General 2 09-01-2005 07:14 AM
bash shell script naka0naka Linux - Newbie 7 05-28-2004 04:06 PM
bash shell script problem shanenin Linux - Software 5 02-09-2004 10:22 PM
bash shell script problem evilchild Programming 7 02-08-2004 11:09 PM
bash shell script MaryM Linux - Newbie 0 02-16-2002 12:45 AM


All times are GMT -5. The time now is 12:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration