*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  Linux HOWTOs -> If You Login as Superuser              
Title
Content
 
   
If You Login as Superuser

4.2. If You Login as Superuser

If you are not creating this script for use as superuser, go to Section 4.3.

Type in the following script file.


echo "Please enter a directory name for the pictures."
read DIRPATH
mkdir picture/$DIRPATH
/sbin/modprobe usb-storage
mount -t vfat /dev/sda1 /mnt/camera
/etc/rc.d/init.d/usb start
mv /mnt/camera/dcim/100msdcf/*.jpg picture/$DIRPATH;
umount /mnt/camera
chown -R your_login_name picture/$DIRPATH
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service