Mounting ftp host to local directory on top of FUSE

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 [...]

Posted in Admin, curlftpfs, mount, sudo, umount | Hits: 107701 | 18 Comments »

How to shutdown and reboot without sudo password?

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 [...]

Posted in Admin, chmod, shutdown, sudo | Hits: 162467 | 14 Comments »

Writing scripts that needs root permission

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 [...]

Posted in Admin, Bash, sudo | Hits: 62091 | 8 Comments »

immune your files and folders from accidental deletion.

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 [...]

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

ssh server security warning

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: 34786 | 4 Comments »

kill process with care

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 processes [...]

Posted in Common, kill, killall, pkill, sudo | Hits: 154144 | 19 Comments »

search and replace

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. [...]

Posted in Misc, sed, sudo, Text Manipulation, vi, vim | Hits: 38346 | 3 Comments »

mount a samba point

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 [...]

Posted in Admin, mount, mount.cifs, smbmount, sudo | Hits: 81477 | 17 Comments »

allow root privilage GUI application run with user login.

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 [...]

Posted in Admin, gksudo, ls, sudo, which | Hits: 51537 | 12 Comments »

sudo is different from su

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 [...]

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