Kadir Özdemir

  • Ben Kimim
  • PHP
  • Sencha Touch
  • Home/
  • Linux /
  • Bash: Ftp user olusturma

Bash: Ftp user olusturma

Skorp 26.05.2007 Leave a Comment

Selamlar bugun download serveri icin ftp accountu acmam lazimdi, bende her zaman elden acmaktan biktim bir shell skript i yazdim hemen onu ekliyorum lazim olan kullanir.

#/bin/bash
#       ftpuseradd v. 0.1
#       Author: kadir Oezdemir
#       date: 26.05.2007 20:30


if [ $# -eq 1 -a ! -d $1 ];then
#       echo "dosya ismi: $0";
        echo "parametre: $1";
        mkdir $1;
        PFAD=`pwd`;
#       echo $PFAD;
        useradd -g ftpaccounts -d $PFAD/$1 -s /bin/false $1
        chown $1:ftpaccounts $1/
        chmod 755 $1
        passwd $1
else
         echo "Yardim: Ya Birden fazla parametre yazdiniz yada $1 dosyasi kullanilmakda.";
         echo "#########################";
         echo "Kullanim: $0 <parametre>";
fi

chmod 777 dosyaismi.sh
kullanim: ./dosyaismi.sh parametre

ne yapar:
parametre adinda bir kullanici olusturur
parametre adinda bir klasör üretir

quick & dirty 😉

Skorp
2007-05-26
Tags:
Linux
Share story:
← PreviousMultiple Internet Explorer
Next →Htaccess ile subdomain

Written by Skorp

View all articles by Skorp

Website: http://www.skorp.eu

Related Articles

  • Github: Fork’dan Pull’a

  • Symantec Trial SSL Certificate

  • root Partition dolmus

  • mailq islemleri (postfix)

  • Spamassassin test

Leave a Comment Cancel Reply

Your email address will not be published. Required fields are marked *

Social networks

Etiket Bulutu

Android Bilgisayar & Internet C# Cms css diger Kodlar featured Genel Java Javascript Linux Mobile PHP Silverstripe typo3 Veritabani Windows Zend Framework

Links

  • H E R K O N U
  • Hüseyin Koyun
  • Urban23k

Son Yorumlar

  • Primary Key – Unique ve Index nedir? için Onur
  • Centos de apache, php ve mysql kurulumu için sezer fidancı
  • React Native – Kurulum için React Native | Kadir Özdemir
  • React Native için React Native – Kurulum | Kadir Özdemir
  • Ben Kimim için serkan

Twitter

Follow @skorp54
There is an error in twitter widget, please make sure that you have set up the Twitter API settings
  • Ben Kimim
  • PHP
  • Sencha Touch

Arsivler

Kategoriler

Copyright © 2014 webberz.at