Software :: Write A Script Which Will Take In The Password Automatically?
Mar 21, 2011
I have a script under /etc/init.d/jboss
When I start the Jboss under my user account (assumed test) I type:
Code:
[test ~]#/etc/init.d/jboss start
And it will ask me for paaword:
Code:
Password:
And I have to type the password.
I find this is quite boring. So I want to write a script locally (assumed called myJboss) so when I want to start the Jboss I just type in:
Code:
[test ~]#myJboss start [password]
And this script will not ask me for password anymore.
View 1 Replies
ADVERTISEMENT
Sep 13, 2009
Ubuntu 8.4 Just installed Truecrypt yesterday. Would like to be able to start Truecrypt automatically and use the same password as my login password.
View 1 Replies
View Related
Aug 15, 2010
When I mount an external usb drive on linux (CentOs4), the permissions are by default set to read-only. Since there are multiple users on the computer who need to use the external drive, I want everybody to have rw permission for the entire drive. I also want them to be able to mount the drive if the computer has accidentially been shut down. They can use sudo mount to mount the drive, but this will only give them read permission, and I obviously don't want to allow sudo chmod.
Is there a default setting that I can change so that every new external usb disk automatically gets rw permissions?
View 2 Replies
View Related
Jan 21, 2010
I used to be able to write to my SD memory card but just recently it is being automatically mounted as read-only. I checked the read-only tab and tried to set it to the lock position, and to the unlock position. Neither position makes a difference. It was working normally a few days ago. I also tried changing the permission using su
ls -lt gives the following result
drwxr-xr-x 4 col root 16384 1970-01-01 01:00 CANON_DC
chmod chgrp and chown in su mode don't change anything either.
I tried mounting a different 1GB SD card and it works perfectly. I noticed that when I mount this card I get a window asking me what I want to do, but I don't get this on the other card. It must some kind of setting related to the unwriteable card.
I am using F10 2.6.27.41-170.2.117.fc10.i686
View 3 Replies
View Related
Jan 30, 2010
I don't know why but every time I plug my iPod it gets mounted automatically as root and therefore I can't write anything in it. I mentioned this issue on the #suse irc channel posting mount output:
eugenio@openSUSE:~> mount
/dev/sda7 on / type ext4 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
[Code]....
I read some posts about editing the fstab file but I'm not really sure how to do this (if this is the solution) and I believe this could have worked on earlier versions (where HAL was used) Is there anything I can do to make opensuse mount my ipod automatically with full access to normal users?
View 6 Replies
View Related
Jan 1, 2011
Basically, to save battery (extend battery life) of computer, I use these commands to shut off my dedicated graphics card:
Code:
cd acpi_call
sudo insmod acpi_call.ko
./test_off.sh
Now right now I have to do this manually. Is there some way for the system to execute these automatically when the system boots?
View 6 Replies
View Related
Dec 10, 2010
I'm new to debian ,I was trying to mount my NTFS partition but I did that only with read permissions I couldn't install ntfs-config(allthough I have ntfs-3g installed).So I want to figure out how to mount my partitions with read/write permissions automatically as the systeme starts ?
View 2 Replies
View Related
Jun 21, 2010
I don't know if this a bug or some setting that I have changed inadvertently, but when I start up my computer Ubuntu now logs me on automatically to the sole user account I have created but without asking me my password.I rarely fiddle about with settings and am not aware of touching anything to do with user accounts etc. Obviously I don't want this behaviour otherwise I wouldn't have put a password on the account. Everytime I log on I want to choose what language I want to run my system from the log on screen.
In administration > users and groups > it says my user account password is asked at login.Is there an option somewhere else to turn this behaviour on or off?how I could have accidentally turned this behaviour on?
View 2 Replies
View Related
Aug 20, 2010
I have installed linux Mint as a first time user on an oldish laptop. How can I prevent it defaulting back to the user password screen when I am not using it for a few minutes? I'd be grateful for some pointers. Better still, can I get it t passwordautomatically?..i.e. remember password. I thought I had completed this step but it goes back to the user login which is quite annoying as I have to keep entering the password.
View 4 Replies
View Related
Feb 18, 2010
I am using OpenSuse 11.1. When the computer boots, I come to the welcome screen and then I have the screen with the users on the left hand side. One user is selected by default, and the space for the password is in blank. If I do not enter the password immediately, black dots start to appear in the password box as if there was somebody typing a password.
View 5 Replies
View Related
Jun 25, 2010
I want to update my gnome to the latest version (2.30) because I have 2.28 so I go to terminal and enter the command "apt-get" or try "zypper dup" which both ask for root so I just add "sudo" before the commands and when it ask for the password it doesnt let me write it.
View 9 Replies
View Related
May 24, 2011
I need to be able to use an rsync command in script that will be run by cron. And it needs to be able to pass a password to rsync so that the remote server it's connecting to will authenticate.
I cannot set up ssh keys between the two servers, it's not an option. I cannot use any other language other than bash, it's my only option. I know this is highly insecure, I have no other option.
So far I have this:
rsync --rsh="/usr/bin/ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=password" -raxv /source/dir/* user@remotehost:/target/directory/.
This allows the script to ignore host verification and goes directly to the password prompt. I need the script to fill in this password prompt with the password that is stored in a variable.
I tried using expect, but I honestly don't know the syntax, it just keeps failing. A lot of the examples I'm finding online for expect starts off with a "spawn", which i don't have installed, and not sure if I have the ability to install it yet.
View 4 Replies
View Related
Feb 21, 2010
When i try to write the password this happens
http://s890.photobucket.com/albums/a...Screenshot.png
spawn this black thing and i cant write.
any idea?
View 9 Replies
View Related
Sep 24, 2010
i am trying to write a telnet server without username/password function. how to implement such function? the source code from inetutils seems complicated..
View 8 Replies
View Related
Mar 7, 2010
i'm trying to get everything working ok. i have installed ubuntu using wubi and i've found that i can access my files on my windows partition from ubuntu. to do this i have to mount the disk and enter the password each time i boot up, and i would like this to be done automatically. i was wondering if this was possible? i put in a link directly to the music folder on windows into my 'places' but it only appears once i have put the password in. its not a huge thing, but its one of those things which would make starting up my ubuntu a lot more conveniant.
View 4 Replies
View Related
May 17, 2010
I found a way some times ago to mount a truecrypt volume when opening the session by insertion of the login password in the mounting script instead of putting it in clear in the script. I don't remember to command to read/transfer the password.
View 2 Replies
View Related
Dec 14, 2010
When I start my ubuntu linux system it automatically logs into a user (not root) in graphical mode and it does not asking for any password. when I try to go to the command prompt the password is required. How do I give password for my user. The provider installed the system and not me..
View 5 Replies
View Related
Mar 24, 2011
i need to connect to a remote linux server on certain times (automated), but i need to log on to the server. So i want to make a script (shell perhaps) that periodically connects to the server and checks some files and folders.How do i automate it and how can i log on automatically to the remote server without typing everytime the password and login (the script should do it himself)
View 14 Replies
View Related
Jun 13, 2011
I would like to know how can I share a folder in samba with no need of user and password with write permission, with no need of using guest user.
View 3 Replies
View Related
Oct 11, 2010
Unless your distro has taken care of it Centos 5.5, you'll need to create a user with a password and read/write privileges for program database. You can do this using the MySQL command line client if you are familiar with it. Well I am not familiar with it, so I wam wondering how to do it. As well when I run
mysql - p program </usr/share/program/mysql.sql>
It asks for a password. how do i find out this password.
View 1 Replies
View Related
Jul 30, 2010
When I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?
View 1 Replies
View Related
Jan 8, 2010
hello i am trying to change my password, but when i type in the new password i get this:"The password is longer than 8 characters. On some systems, this can cause problems. You can truncate the password to 8 characters, or leave it as it is."my question is what kind of problem could i get and how can i change so i have to log in every time i start the computer?
View 9 Replies
View Related
Feb 28, 2011
I am having trouble getting grub to automatically boot into ubuntu server. When I turn on my server the grub menu shows up and shows me the choices. They all work fine except that grub wont automatically select one. This wouldn't be too much of a problem but this is a headless server and I can't boot into ubuntu without a keyboard. I tried looking through the grub 2 documentation but nothing seemed to work when I edited the conf file.
View 1 Replies
View Related
Jan 31, 2011
solve the following problem...mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combiningThis i am getting many lines in DMESG.
View 10 Replies
View Related
Jan 25, 2010
what to do for lock automatically slackware 13 if not used for n minutes ?What can i do to start automatically the ktorrent (a bittorrent program for linux) on system starts on slackware 13 ?
View 2 Replies
View Related
Nov 17, 2009
Ive installed Gaussian '03 on fedora Core 10, but I'm unable to run it. It aborts and i get the following error
Code:
Erroneous write during file extend. write -1 instead of 4096
Probably out of disk space.
Write error in NtrExt1
View 3 Replies
View Related
Feb 17, 2010
I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.
View 8 Replies
View Related
Nov 4, 2010
how do I uninstall Java? Tried with Synaptic and apt-get remove, but uninstalling sun-java6 automatically adds default-jre (openjdk) and uninstalling openJdk automatically installs sun-java ... but I don't want ANY Java on my machine - am I missing something? Already thought I maybe have a package that requires SOME kind of Java, but how do I find out?
View 2 Replies
View Related
May 3, 2011
I can't write to USB on Natty. I can read the files and copy them to my netbook fine, but I can't change anything, I can't write or delete files
View 1 Replies
View Related
Jan 4, 2011
df -h [URL] I did the following command to find everything is in /usr or /var, then tracked it down to /usr/lib and /usr/share as the main offenders, but out of all the directories none are more than 1mb or so.
du -sh /* | sort -gr | head -n 5
I tried to uninstall firefox, which is what got me in this mess in the first place, the log claims it will remove ~240 mb but failes on a "E: Write error - write (28 No space left on device)" [URL] If I could juggle something onto an external hard drive so I can uninstall firefox I would be out of the wood. Failing that I believe a new install is in order.
View 1 Replies
View Related