Creating User Account And Not Allowing Them To Login

  • akomaoako2k
  • Newbie
  • Newbie
  • akomaoako2k
  • Posts: 10
  • Loc: Philippines

Post 3+ Months Ago

how to create user account w/out allowing them to login to the server?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

whats the point of that?
which distro?
  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

useradd -s /bin/false username
  • Intruder BG
  • Newbie
  • Newbie
  • Intruder BG
  • Posts: 13
  • Loc: Belgrade - City of Paviljoni

Post 3+ Months Ago

AnarchY SI wrote:
whats the point of that?
which distro?


Point may be to make a FTP user without SSH access...
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Or perhaps an application requires the use of a valid username, without ever requiring a login?
  • dinangkur
  • Born
  • Born
  • User avatar
  • Posts: 3
  • Loc: Dhaka, Bangladesh

Post 3+ Months Ago

Yes it's right. I'm also using such env. in our office testing server. I create user account based on project names. So, programmers can upload files and test it. The script i use:



#!/bin/bash

clear
echo
echo “# This is a automation script to create project based user.#”
echo “# Also create hosting folder and allow user based access.#”

echo
echo “Welcome $USER”
echo

echo “######################## User Guide ##########”
echo “# Please pass new user name as parameter: process.sh test #”
POSTPAR1=”$1″

echo “New user name is $1″

grep $1 /etc/passwd

if [ $? -eq 0 ]
then echo “User Exist”
else
useradd -s /bin/false $1
passwd $1
ln -s /home/$1 /opt/lampp/htdocs/$1
sudo chmod 0775 /opt/lampp/htdocs/$1
fi

Any comments will be helpful.

Thanks.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 69 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.