Live Chat!

Mounting ftp host to local directory on top of FUSE

* * * * * 1 votos

November 17th, 2007 mysurface

I have wrote a post regarding on how to access ftp host using curl. And this time, let us look at how to mount the ftp host to a local directory on top of FUSE.
FUSE (Filesystem in userland) is a userland build on top of virtual filesystem, it allows you to implement functional filesystem in [...]

Posted in Admin, curlftpfs, mount, sudo, umount | Hits: 20698 | 6 Comments »

How to shutdown and reboot without sudo password?

* * * * * 1 votos

September 25th, 2007 mysurface

If you are gnome user, you probably enjoy shutdown with just a click on the dialog. In order to shutdown from command line, you are requested to be either root or using sudo, such as
sudo shutdown -h now
For more detail examples of shutdown, continue to read here.
With sudo, you need to type your password. Sometimes [...]

Posted in Admin, chmod, shutdown, sudo | Hits: 20953 | 4 Comments »

Writing scripts that needs root permission

* * *     1 votos

September 2nd, 2007 mysurface

While executing commands that needs root permission, I rely on sudo. Sudo provides me a very convenient way to execute root privilege commands from my user account provided with my user account password.
Sudo and su are not the same, check out more from here.
When comes to scripting, I couldn’t use sudo directly. For examples I [...]

Posted in Admin, Bash, sudo | Hits: 21626 | 3 Comments »

immune your files and folders from accidental deletion.

          0 votos

December 18th, 2006 mysurface

Okay, when you accidentally type
rm LoveLetterFromJane.txt
Your file are gone, can’t resume it at trash, there are no trash, the document are important to you! Oh My God!! you smack your box!
In Linux, you can change attribute for your files and folders, to make it immune from accidental deletion, not even with root permission. To do [...]

Posted in Admin, Misc, chattr, man, sudo | Hits: 8499 | 2 Comments »

ssh server security warning

          0 votos

December 12th, 2006 mysurface

If you are hosting your ssh server to public, please remember to disable the root access. This is important! A lots of “hacker”s are running brute force tools trying to scan the open ssh port and brute force to get root access. If your root password somehow easy to guess, or you are not lucky [...]

Posted in Admin, Misc, ssh, sudo | Hits: 7400 | 3 Comments »

kill process with care

* * * * * 1 votos

November 18th, 2006 mysurface

A lots of people likes to do kill -9, which means kill a process by force. By specified -9, process will be terminated by force, which is very fast and confirm kill but it leaves hidden side effects. Refers to Useless use of kill -9, kill a process by specified -9 may leave child [...]

Posted in Common, kill, killall, pkill, sudo | Hits: 21138 | 3 Comments »

search and replace

* * * *   1 votos

November 1st, 2006 mysurface

This is a very common needs, to search a keyword and replace it with another. Give you a simple example, when I want to perform a ubuntu distribution upgrade from dapper to edgy, I need to edit the file /etc/apt/sources.list.
To do that i can either uses vim, or simply uses sed.
The vim way.
sudo vim /etc/apt/source.list
When [...]

Posted in Misc, Text Manipulation, sed, sudo, vi, vim | Hits: 6422 | 2 Comments »

mount a samba point

* * * *   1 votos

October 10th, 2006 mysurface

You may heard about smbmount, smbfs or cifs. Yes if you are looking for how to mount a point to access to other machine through samba, you come to a right page.

How to mount a samba point might be vary at different linux distro, I ll recomment you at least read the manuals at your [...]

Posted in Admin, mount, mount.cifs, smbmount, sudo | Hits: 12775 | 4 Comments »

allow root privilage GUI application run with user login.

          0 votos

September 21st, 2006 mysurface

For running root access GUI apps under user login desktop, you can do this at fedora, and other red hat based distro.
sudo gnome-terminal
This will not run correctly at ubuntu or debian based distro, you need to do this in ubuntu
gksudo gnome-terminal
As you can realized that such apps like wireshark needs root privilage but running sudo [...]

Posted in Admin, gksudo, ls, sudo, which | Hits: 10478 | No Comments »

sudo is different from su

          0 votos

September 21st, 2006 mysurface

Some of the distro uses sudo to gaim access to run root privilage commands. But some of the distro do not include sudo by default such as FC5. To run some root privilage programs, you need to login as root by using su and gives root password.
Sometimes admin would not like to give away the [...]

Posted in Admin, source, sudo | Hits: 6569 | 2 Comments »