LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-25-2011, 09:52 AM   #1
Gustav780924
LQ Newbie
 
Registered: Jan 2011
Distribution: Samba
Posts: 1

Rep: Reputation: 0
how to delete multiple users from Samba


I need help urgently i am new to Linux.I am sitting with a situation where i have 3 groups on a samba server with about 30 user per group.I would like to know how to delete all the user in a group before adding new users.


Thanks
Gustav

Last edited by Gustav780924; 01-25-2011 at 10:23 AM.
 
Old 01-26-2011, 12:49 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Get the list of users in a file and simply do something like:

The file would be formatted one user per line:

user1
user2
user3

Code:
for USER in `cat userlist`; do <command-used-to-remove-samba-user> $USER; done
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring samba for multiple users or for everyone on a LAN crash_override_me Linux - Networking 12 06-10-2009 06:14 AM
Samba on RHEL4: Windows users unable to rename or delete files seanys Linux - Software 1 02-13-2009 02:41 AM
Windows users can not delete files from Samba rushenas Linux - Software 1 01-05-2008 04:13 AM
Samba users cannot create directories / delete files habiem Linux - Server 1 09-21-2007 04:59 PM
cannot delete any file of other users (samba question) eduac Linux - Software 2 02-07-2006 03:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration