<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>System Network Programming Solution - Linux - windows - centos- security- cpanel - plesk -directadmin helm</title>
	<atom:link href="http://thegioinguonmo.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://thegioinguonmo.com</link>
	<description>SHARING EVERYTHING</description>
	<lastBuildDate>Mon, 06 Feb 2012 09:45:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Linux : How to export public key for others/friends or your recipients</title>
		<link>http://thegioinguonmo.com/os/linux/linux-how-to-export-public-key-for-othersfriends-or-your-recipients.html</link>
		<comments>http://thegioinguonmo.com/os/linux/linux-how-to-export-public-key-for-othersfriends-or-your-recipients.html#comments</comments>
		<pubDate>Mon, 06 Feb 2012 09:45:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1729</guid>
		<description><![CDATA[1) Login to your shell account 2) Use &#8211;export option to export your public key in text file $ gpg &#8211;export –a &#62; my.key OR $ gpg &#8211;export -a &#124; mail -s &#8220;My key&#8221; friend@domain.com Where -a &#8211;armor : Create ASCII armored output. &#8211;export : Export the key for sharing First command write output to [...]]]></description>
			<content:encoded><![CDATA[<p>1) Login to your shell account</p>
<p>2) Use &#8211;export option to export your public key in text file<br />
<strong>$ gpg &#8211;export –a &gt; my.key</strong><br />
OR<br />
<strong>$ gpg &#8211;export -a | mail -s &#8220;My key&#8221; friend@domain.com</strong></p>
<p>Where<br />
<strong>-a &#8211;armor</strong> : Create ASCII armored output.<br />
<strong>&#8211;export</strong> : Export the key for sharing</p>
<p>First command write output to file my.key and second directly sends an email to your friend. Once my.key delivered to friend, he/she need to import it using the following command (aka adding keys to your keyring):<br />
<strong>$ gpg &#8211;import my.key</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/linux-how-to-export-public-key-for-othersfriends-or-your-recipients.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell script to Finding ALL Superuser ( root ) Accounts under UNIX / Linux OSes</title>
		<link>http://thegioinguonmo.com/programing/shell-script/shell-script-to-finding-all-superuser-root-accounts-under-unix-linux-oses.html</link>
		<comments>http://thegioinguonmo.com/programing/shell-script/shell-script-to-finding-all-superuser-root-accounts-under-unix-linux-oses.html#comments</comments>
		<pubDate>Sun, 05 Feb 2012 21:47:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[shell script]]></category>
		<category><![CDATA[gnu gpl version]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[use]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[visit]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1699</guid>
		<description><![CDATA[In Unix-style computer operating systems, root is the conventional name of the user who has all rights or permissions in all modes (single- or multi-user). The root user can do many things an ordinary user cannot, such as changing the ownership of files and binding to ports numbered below 1024. It is never good practice [...]]]></description>
			<content:encoded><![CDATA[<p>In Unix-style computer operating systems, root is the conventional name of the user who has all rights or permissions in all modes (single- or multi-user). The root user can do many things an ordinary user cannot, such as changing the ownership of files and binding to ports numbered below 1024.</p>
<p>It is never good practice for anyone to use root as their normal user account because simple typographical errors in entering commands can cause major damage to the system. It is recommended to create a normal user account instead and then use the su command to switch when necessary. Some use the sudo utility instead, which allows a measure of graduated access. Following script find out all root user account on system.</p>
<pre class="brush:shell">#!/bin/bash
# Shell script to Finding ALL Superuser Accounts
# Useful to improve system security.
# Copyright (c) 2005 nixCraft
# This script is licensed under GNU GPL version 2.0 or above
# For more info, please visit:
#            http://cyberciti.biz/shell_scripting/bmsinstall.php
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------
grep -v -E "^#" /etc/passwd | awk -F: '$3 == 0 { print $1}'</pre>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/programing/shell-script/shell-script-to-finding-all-superuser-root-accounts-under-unix-linux-oses.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris &gt; Access the CDROM/DVD (mount CDROM/DVD media)</title>
		<link>http://thegioinguonmo.com/os/linux/solaris-access-the-cdromdvd-mount-cdromdvd-media.html</link>
		<comments>http://thegioinguonmo.com/os/linux/solaris-access-the-cdromdvd-mount-cdromdvd-media.html#comments</comments>
		<pubDate>Sun, 05 Feb 2012 09:39:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[symbolic names]]></category>
		<category><![CDATA[system image]]></category>
		<category><![CDATA[Volume]]></category>
		<category><![CDATA[volume management]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1681</guid>
		<description><![CDATA[The Volume Management daemon, vold, creates and maintains a file system image rooted at root-dir that contains symbolic names for CD-ROM and floppy, ZIP/JAZ, and DVD-ROM devices and other removable devices. Use volcheck command to checks for media in a drive and by default checks all floppy media. 1) First put CDROM/DVD into drive 2) [...]]]></description>
			<content:encoded><![CDATA[<p>The Volume Management daemon, vold, creates and maintains a file system image rooted at root-dir that contains symbolic names for CD-ROM and floppy, ZIP/JAZ, and DVD-ROM devices and other removable devices. Use volcheck command to checks for media in a drive and by default checks all floppy media.</p>
<p>1) First put CDROM/DVD into drive</p>
<p>2) For CDROM: After few second change directory /cdrom/cdrom0 or /cdrom/VOL_NAME</p>
<p># cd /cdrom/cdrom0</p>
<p>3) For DVDROM: After few second change directory /dvd/VOL_NAMRE</p>
<p>If this does not works make sure volmgt daemon is running:</p>
<p># /etc/init.d/volmgt start</p>
<p>Scan for devices both cd or floopy using:</p>
<p>#volcheck</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/solaris-access-the-cdromdvd-mount-cdromdvd-media.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris &gt; How to boot system into emergency mode</title>
		<link>http://thegioinguonmo.com/os/linux/solaris-how-to-boot-system-into-emergency-mode.html</link>
		<comments>http://thegioinguonmo.com/os/linux/solaris-how-to-boot-system-into-emergency-mode.html#comments</comments>
		<pubDate>Sat, 04 Feb 2012 21:39:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mode]]></category>
		<category><![CDATA[Press]]></category>
		<category><![CDATA[single user mode]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[TERM]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1679</guid>
		<description><![CDATA[IA32: To boot system for emergency mode (boot from CD) 1) Boot from Solaris 1st CD 2) At Solaris Device Configuration Assistant, Press F2 key 3) Then press ENTER key twice 4) At Identified Devices, Press F2 key 5) At Boot Solaris, select CD to boot system 6) At next screen system will ask about [...]]]></description>
			<content:encoded><![CDATA[<p>IA32: To boot system for emergency mode (boot from CD)</p>
<p>1) Boot from Solaris 1st CD</p>
<p>2) At Solaris Device Configuration Assistant, Press F2 key</p>
<p>3) Then press ENTER key twice</p>
<p>4) At Identified Devices, Press F2 key</p>
<p>5) At Boot Solaris, select CD to boot system</p>
<p>6) At next screen system will ask about to “Select the type of Installation”, type<br />
the argument b –s and press ENTER key to boot system into single user mode.</p>
<p>7) Next at shell prompt type the following commands -:</p>
<p># mount /dev/dsk/c0d0s0 /a<br />
# TERM=ansi<br />
# export TERM<br />
# cd /a</p>
<p> <img src='http://thegioinguonmo.com/wp-includes/images/smilies/icon_cool.gif' alt="icon cool Solaris > How to boot system into emergency mode" class='wp-smiley' title="Solaris > How to boot system into emergency mode" /> You can access the system.</p>
<p>9) When done type as follows to reboot the system:</p>
<p># cd /<br />
# umount /a<br />
# init 6</p>
<p>SPARC: To boot system for emergency mode (boot from CD), at ok prompt type:</p>
<p>boot cdrom -s<br />
# mount /dev/dsk/c0t1d0s0 /a<br />
# cd /a<br />
# TERM=vt100<br />
# export TERM<br />
# cd /<br />
# umount /a<br />
# init 6</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/solaris-how-to-boot-system-into-emergency-mode.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell script to find all programs and scripts with setgid bit set on</title>
		<link>http://thegioinguonmo.com/programing/shell-script/shell-script-to-find-all-programs-and-scripts-with-setgid-bit-set-on.html</link>
		<comments>http://thegioinguonmo.com/programing/shell-script/shell-script-to-find-all-programs-and-scripts-with-setgid-bit-set-on.html#comments</comments>
		<pubDate>Sat, 04 Feb 2012 09:40:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[shell script]]></category>
		<category><![CDATA[gnu gpl version]]></category>
		<category><![CDATA[privileges]]></category>
		<category><![CDATA[Sample Shell Script]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[script collection]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[SPATH]]></category>
		<category><![CDATA[visit]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1671</guid>
		<description><![CDATA[setuid and setgid (short for set user ID upon execution and set group ID upon execution, respectively) are Unix access rights flags that allow users to run an executable with the permissions of the executable&#8217;s owner or group. They are often used to allow users on a computer system to run programs with temporarily elevated [...]]]></description>
			<content:encoded><![CDATA[<p>setuid and setgid (short for set user ID upon execution and set group ID upon execution, respectively) are Unix access rights flags that allow users to run an executable with the permissions of the executable&#8217;s owner or group. They are often used to allow users on a computer system to run programs with temporarily elevated privileges in order to perform a specific task. While the assumed user id or group id privileges provided are not always elevated, at a minimum they are specific.</p>
<p>setuid and setgid are needed for tasks that require higher privileges than those which a common user has, such as changing his or her login password. Some of the tasks that require elevated privileges may not immediately be obvious, though — such as the ping command, which must send and listen for control packets on a network interface.</p>
<h2>Sample Shell Script</h2>
<pre class="brush:shell">#!/bin/bash
# Shell script to find all programs and scripts with setgid bit set on.
# If your system ever cracked (aka hacked) then system has this kind of binary
# installed; besides the normal setuuid scripts/programs
# Copyright (c) 2005 nixCraft project
# This script is licensed under GNU GPL version 2.0 or above
# For more info, please visit:
#            http://cyberciti.biz/shell_scripting/bmsinstall.php
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------
#SPATH="/usr/local/etc/bashmonscripts"
#INITBMS="$SPATH/defaults.conf"
#[ ! -f $INITBMS ] &amp;&amp; exit 1 || . $INITBMS

[ $# -eq 1 ] &amp;&amp; : || die "Usage: $($BASENAME $0) directory" 1

DIRNAME="$1"
$FIND $DIRNAME -xdev -type f -perm +g=s -print</pre>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/programing/shell-script/shell-script-to-find-all-programs-and-scripts-with-setgid-bit-set-on.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell script to create list of backup files in ~/.mybackup file. Use with mybackup shell script</title>
		<link>http://thegioinguonmo.com/programing/shell-script/shell-script-to-create-list-of-backup-files-in-mybackup-file-use-with-mybackup-shell-script.html</link>
		<comments>http://thegioinguonmo.com/programing/shell-script/shell-script-to-create-list-of-backup-files-in-mybackup-file-use-with-mybackup-shell-script.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 21:43:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[shell script]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1649</guid>
		<description><![CDATA[#!/bin/bash # mybackupadd - Add file to ~/.mybackup file, then backup and email all # file as tar.gz to your email a/c. # # Usage : ./mybackupadd ~/public_html/ # # Copyright (C) 2004 nixCraft project # Email : http://cyberciti.biz/fb/ # Date : Aug-2004 # ------------------------------------------------------------------------- # This program is free software; you can redistribute it [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush:shell">#!/bin/bash
# mybackupadd - Add file to ~/.mybackup file, then backup and email all
# file as tar.gz to your email a/c.
#
# Usage   : ./mybackupadd ~/public_html/
#
# Copyright (C) 2004 nixCraft project
# Email   : http://cyberciti.biz/fb/
# Date    : Aug-2004
# -------------------------------------------------------------------------
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------

FILE=~/.mybackup
MYH=~
CWD=`pwd`
SRC=$1

if [ "$SRC" == "" ]; then
  echo "Must supply dir or file name"
  exit 1
fi
# if list $FILE does not exist
[ ! -f $FILE ] &amp;&amp; touch $FILE || :

# make sure that file or dir exists to backup
if [ ! -f $SRC ]; then
   if [ ! -d $SRC ]; then
      echo "$SRC does not exists"
      exit 2
   fi
fi
# make sure we don't do add duplicate stuff
cat $FILE | grep -w $SRC &gt; /dev/null
if [ "$?" == "0" ]; then
   echo "$SRC exists in $FILE"
   exit 3
fi
# okay now add that to backup list
echo "$SRC" &gt;&gt; $FILE
echo "$SRC added to $FILE"</pre>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/programing/shell-script/shell-script-to-create-list-of-backup-files-in-mybackup-file-use-with-mybackup-shell-script.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell script to backup directories from Linux server to Windows 2000/NT Server</title>
		<link>http://thegioinguonmo.com/programing/shell-script/shell-script-to-backup-directories-from-linux-server-to-windows-2000nt-server.html</link>
		<comments>http://thegioinguonmo.com/programing/shell-script/shell-script-to-backup-directories-from-linux-server-to-windows-2000nt-server.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 09:41:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[shell script]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[NTUSER]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1644</guid>
		<description><![CDATA[#!/bin/bash # Shell script to backup directories from Linux server to Windows 2000/NT Server. # Run it as follows # Scriptname /home backup abc123 //server2000/backup # Backup /home directory from Linux box to NT/2000 box called # 'server2000' in share called '/backup' with username # 'backup' and password 'abc123' # -------------------------------------------------------------------- # This is a [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush:shell">#!/bin/bash
# Shell script to backup directories from Linux server to Windows 2000/NT Server.
# Run it as follows
# Scriptname /home backup abc123 //server2000/backup
# Backup /home directory from Linux box  to NT/2000 box called
# 'server2000' in share called '/backup' with username
# 'backup' and password 'abc123'
# --------------------------------------------------------------------
# This is a free shell script under GNU GPL version 2.0 or above
# Copyright (C) 2005 nixCraft project
# Feedback/comment/suggestions : http://cyberciti.biz/fb/
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------

# backup what?
FROM=$1
# NT Connection Info #
# NT Username
NTUSER=$2
# NT Password
NTPASSWD=$3
# NT ShareName i.e //server/backup etc
NTSHARE="$4"

# BackUpDir Name
BACKDIR="$(hostname -s)"

# Local mount point
MNT="/mnt/smbbox"

# Get date and time
NOW=$(date +"%m-%d-%Y-%I_%M%P")
# backup file  name
BAKFILE="backup.$NOW.tar.gz"

if [ "$#" != "4" ]; then
	echo "Syntax:"
	echo "$(basename $0) {Linux-directory} {NTusername} {NTpassword} {//NTserver/share-name}"
	exit 1
fi
# make sure $from do exits
if [ ! -d $FROM ]; then
   echo "Backup source directory \"$FROM\" does NOT exist"
   exit 2
fi
#Create tar to backup first
tar -czf /tmp/$BAKFILE $FROM 

#Mount the smb to /mnt
[ ! -d $MNT ] &amp;&amp; mkdir -p $MNT || :

mount -t smbfs -o username=$NTUSER,password=$NTPASSWD $NTSHARE $MNT

[ ! -d $MNT/$BACKDIR ] &amp;&amp; mkdir -p $MNT/$BACKDIR || :

# Copy new tar to ntbox
cp /tmp/$BAKFILE $MNT/$BACKDIR

# Send sync aka force to write data before issuing umount
sync

# issue umount
umount $MNT</pre>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/programing/shell-script/shell-script-to-backup-directories-from-linux-server-to-windows-2000nt-server.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD &gt; which directories (PATHs) used to load device drivers (modules)?</title>
		<link>http://thegioinguonmo.com/os/linux/freebsd-which-directories-paths-used-to-load-device-drivers-modules.html</link>
		<comments>http://thegioinguonmo.com/os/linux/freebsd-which-directories-paths-used-to-load-device-drivers-modules.html#comments</comments>
		<pubDate>Thu, 02 Feb 2012 21:42:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Loader]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[module path]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1619</guid>
		<description><![CDATA[The kldconfig utility displays or modifies the search path used by the kernel when loading modules using the kldload utility or the kldload syscall. You can also use sysctl command (the sysctl utility retrieves kernel state). Try any one of the following command as a root user: 1) To get PATH (or directories name) type [...]]]></description>
			<content:encoded><![CDATA[<p>The kldconfig utility displays or modifies the search path used by the<br />
kernel when loading modules using the kldload utility or the<br />
kldload syscall. You can also use sysctl command (the sysctl utility retrieves kernel state). Try any one of the following command as a root user:</p>
<p>1) To get PATH (or directories name) type command:</p>
<p># sysctl kern.module_path</p>
<p>OR</p>
<p># kldconfig -r</p>
<p>2) The path can modified in /boot/loader.conf file, open this file and look for entry called <strong>module_path</strong>:</p>
<p># grep &#8220;modile_path&#8221; /boot/loader.conf</p>
<p><em>module_path=&#8221;/boot/kernel;/boot/modules;/modules;/new/path&#8221; </em></p>
<p>Note you must open /boot/loader.conf file to change path settings using text editor:</p>
<p># vi /boot/loader.conf</p>
<p>And make changes to file.</p>
<p>3) Reboot system to take effect.</p>
<p>4) Or on fly, you can add/append path using kldconfig utility, read man page for more info.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/freebsd-which-directories-paths-used-to-load-device-drivers-modules.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Renaming files with –– at the start</title>
		<link>http://thegioinguonmo.com/os/linux/renaming-files-with-%e2%80%93%e2%80%93-at-the-start.html</link>
		<comments>http://thegioinguonmo.com/os/linux/renaming-files-with-%e2%80%93%e2%80%93-at-the-start.html#comments</comments>
		<pubDate>Thu, 02 Feb 2012 09:41:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1383</guid>
		<description><![CDATA[I’m making a post about this because I ran into this today and I couldn’t remember how to rename a file starting with — (two or double hyphens) in Linux (e.g. –index.html). The customer has obviously used a Windows FTP client to rename index.html to –index.html so it is out of their way, and now [...]]]></description>
			<content:encoded><![CDATA[<p>I’m making a post about this because I ran into this today and I couldn’t remember how to rename a file starting with — (two or double hyphens) in Linux (e.g. –index.html). The customer has obviously used a Windows FTP client to rename index.html to –index.html so it is out of their way, and now me, the server administrator or company sysadmin, has come along with my migration script to relocate it and it has fallen over, crashed, and burned!</p>
<p>When you try and rename it the following is given:</p>
<blockquote>
<pre class="brush:plain">$ mv ––index.html index.html.renamed
mv: unrecognized option `––index.html’
Try `mv ––help’ for more information.</pre>
</blockquote>
<p>I also tried delimiting it the normal way, but it wouldn’t work either:</p>
<blockquote>
<pre class="brush:plain">    mv \–\–index.html index.html.renamed</pre>
</blockquote>
<p>The correct way to rename it is:</p>
<blockquote>
<pre class="brush:plain">    mv ./––index.html index.html.renamed</pre>
</blockquote>
<p>Because –– has special meaning, you can’t delimit it with a simple backslash (\), you have to put a path reference in there to delimit it. So my path working directory (pwd) was /home/user/data/ where the file was located, so I could use ./ to reference the current pwd. The other option is to put the full path in:</p>
<blockquote>
<pre class="brush:plain">    mv /home/user/data/––index.html index.html.renamed</pre>
</blockquote>
<p>Hopefully this helps out some other Linux server administrator out there who’s mind it has slipped.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/renaming-files-with-%e2%80%93%e2%80%93-at-the-start.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu: Rename an Account [ User ID ]</title>
		<link>http://thegioinguonmo.com/os/linux/ubuntu-rename-an-account-user-id.html</link>
		<comments>http://thegioinguonmo.com/os/linux/ubuntu-rename-an-account-user-id.html#comments</comments>
		<pubDate>Wed, 01 Feb 2012 21:39:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1358</guid>
		<description><![CDATA[How do I rename a user name from ‘tom’ to ‘jerry’ under Ubuntu Linux? You need to use the usermod command. It can modify the system account files (such as /etc/passwd) to reflect the changes that are specified on the command line. The syntax is as follows: usermod -l {new-login-name} {current-old-login-name} In this example, rename [...]]]></description>
			<content:encoded><![CDATA[<p>How do I rename a user name from ‘tom’ to ‘jerry’ under Ubuntu Linux?</p>
<p>You need to use the usermod command. It can modify the system account files (such as /etc/passwd) to reflect the changes that are specified on the command line. The syntax is as follows:<br />
<code>usermod -l {new-login-name} {current-old-login-name}</code><br />
In this example, rename login id from tom to jerry. Open a command-line terminal (select Applications &gt; Accessories &gt; Terminal), and then type the following command<br />
<code>$ sudo usermod -l jerry tom</code><br />
To verify new changes, enter:<br />
<code>$ id jerry</code></p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/ubuntu-rename-an-account-user-id.html" title="plesk hide information_schema">plesk hide information_schema</a> (2)</li><li><a href="http://thegioinguonmo.com/os/linux/ubuntu-rename-an-account-user-id.html" title="ubuntu: rename an account">ubuntu: rename an account</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/ubuntu-rename-an-account-user-id.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: thegioinguonmo.com @ 2012-02-07 10:34:54 -->
