Creating User Account And Not Allowing Them To Login

  • akomaoako2k
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jun 13, 2006
  • Posts: 10
  • Loc: Philippines
  • Status: Offline

Post June 16th, 2006, 8:12 am

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

Post June 16th, 2006, 8:12 am

  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post June 16th, 2006, 2:08 pm

whats the point of that?
which distro?
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post June 18th, 2006, 12:22 pm

useradd -s /bin/false username
  • Intruder BG
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jul 04, 2006
  • Posts: 13
  • Loc: Belgrade - City of Paviljoni
  • Status: Offline

Post July 4th, 2006, 8:21 am

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
  • Joined: Jan 23, 2004
  • Posts: 2675
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post July 5th, 2006, 5:46 am

Or perhaps an application requires the use of a valid username, without ever requiring a login?
"It's always a long day, 86,400 won't fit into a short."
  • dinangkur
  • Born
  • Born
  • User avatar
  • Joined: Mar 29, 2005
  • Posts: 3
  • Loc: Dhaka, Bangladesh
  • Status: Offline

Post July 6th, 2006, 12:38 am

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 87 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.