How to Create/ Modify an Account to Give FTP Access OnlyMarch 26th, 2009 This is a very practical problem many web administrators face these days. Suppose you have an user who needs to have the FTP access only and not the SSH or any kind shell access per se.
Free e-Book: Linux Command Line and Shell Scripting Bible January 29th, 2009 Covering the most popular Linux shells (such as bash, ash, tcsh, ksh, korn, and zsh), this reference book shows how to use commands to create scripts within each shell and demonstrates practical applications for shell scripts (including retrieving information from Web sites and sending automated reports via e-mail). For each shell, the author discusses the commands available and explains how to use these commands to create scripts that can automate common functions and reports.
Java Runtime.Exec() GuideJuly 19th, 2007 Everything you ever wanted to know and should know about Java Runtime.exec(). This old but still golden article is an excellent guide to using Runtime.exec().
How to Update or Change Password for a Single User in MySQL and Reload PrivilegesJanuary 17th, 2009 MySQL stores usernames and passwords in the user table inside the MySQL database. You can directly update a password using the following method to update or change passwords:
1) Login to the MySQL server, type the following command at the shell prompt:
$ mysql -u root -p
2) Use the mysql database (type commands at the mysql> prompt):
mysql> use mysql;
3) Change password for a user:
mysql> update user set password=PASSWORD("newpass") where User='YOUR-USER-NAME';
4) Reload privileges:
mysql> flush privileges;
mysql> quit
[P.S.
Subversion: How To Ignore Files From Status DisplayJune 23rd, 2007 In directories under subversion there may be files which you do not want to add to subversion. Normally such files would show in subversion status (svn stat) with ? in front of them.
How to Disable Autoplay of USB Drives and CDs in Windows Vista/ Windows 7January 21st, 2009 Sometimes its really annoying to have the autoplay feature of audio CDs and USB drives. Suppose you wanted to play a track with your favorite music player, the autoplay option doesn't give you that option and starts playing it with the inherent audio player.
How to Set Up Root Password for Your MySQL ServerJanuary 17th, 2009 If you have never set a root password for MySQL, the server does not require a password at all for connecting as root. To set up a root password for the first time, use the mysqladmin command at the shell prompt as follows:
$ mysqladmin -u root password newpass
If you want to change (or update) a root password, then you need to use the following command:
$ mysqladmin -u root -p oldpassword newpass
I hope this will work for you perfectly.
Global Search & Replace Using vi EditorAugust 30th, 2008 To perform a global search and replace in vi editor, use the search and replace command in command mode:
:%s/search_string/replacement_string/g
The % is a shortcut that tells vi to search all lines of the file for search_string and change it to replacement_string. The global ( g ) flag at the end of the command tells vi to continue searching for other occurrences of search_string.
How to Write Java WebStart Application in 5 minutesFebruary 26th, 2009 They say, the best way of learning is to do-it-yourself. When I was assigned to write an article on Java Webstart, I thought to truly understand what's happening with Java Web Start, let's create a program and try to deploy it through any web server.
Windows 7 Hack: Start Windows Explorer from 'My Computer'January 19th, 2009 This is just a small customization but pretty useful for people who like to play with settings and love doing tweaks and tricks with Windows. Supposedly you belong to that group who love exploring different hard disk drives or removable disks more than personal documents' folder.
Developer Tips: How To Show Line Number in vi / vim & nanoNovember 5th, 2008 vi / vim as well as nano are the most popular editors on Unix / Linux / Solaris and for hardcode Mac OSX users too. For developing / debugging we need line numbers.
How To Change Temporary Download Directory of Download Accelerator Plus (DAP)October 8th, 2006 While downloading Fedora Core 5 using DAP, I ran out of temporary disk space (which is by default in C: drive) thereby wasting several hours of download. Download Accelerator Plus (DAP is a popular file download utility) saves the partially downloaded segments in %TEMP% directory.
How to Configure Gnome Keyboard ShortcutsJanuary 8th, 2009 There is a strange conflict between keyboard short-cuts and Gnome Environment. We have got many complaints regarding Gnome doesn’t let you bind keyboard shortcuts with the Super (windows key) combination, except the Super key itself (alone).
How to Shut down Windows Vista Faster!December 25th, 2008 Well I know, amongst hundreds of bugs that you face if you are an unfortunate user of Windows Vista, shut down time is a real annoying part. It takes unimaginably more time to shut a darn computer down.
How To Resolve Tomcat - Openfire Port ConflictNovember 13th, 2007 Openfire (Jabber/XMPP server) by default binds on port 8080 which is also used by Tomcat. This causes Tomcat to fail when openfire is started before it.
January 20th, 2009 at 12:11 pm
Also
:! chmod 700 filename.txt
http://unstableme.blogspot.com/2008/10/start-new-shell-from-vi-editor-vim-tips.html
// Jadu
June 14th, 2009 at 1:29 pm
If you have sudo rights to a user that CAN edit the file, try this:
:w! sudo tee %
or
:w! sudo -u username tee %