LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2011, 09:03 PM   #1
JeffC1
Member
 
Registered: May 2008
Posts: 89

Rep: Reputation: 15
Creating Samba user? How to find syntax or commands?


The server has user level security. I must create a Samba user to allow access to the file server. The OS is Redhat.

here is my problem.

Im the past (CentOS) I would type useradd -G primarygroup -s /bin/false user & smbpasswd -a user

With this redhat box, if I type useradd I get a command not found. If I type smbpasswd -a user I get another error stating that the user could not be updated.

How do I figure this out?
 
Old 02-24-2011, 11:19 PM   #2
JeffC1
Member
 
Registered: May 2008
Posts: 89

Original Poster
Rep: Reputation: 15
Still no luck figuring this out. Help?
 
Old 02-24-2011, 11:38 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,683
Blog Entries: 12

Rep: Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903
I don't know Redhat well enough to be specific, but I'll take a shot.

Maybe this will help.

http://linux.about.com/od/commands/l...l8_useradd.htm
 
Old 02-24-2011, 11:52 PM   #4
JeffC1
Member
 
Registered: May 2008
Posts: 89

Original Poster
Rep: Reputation: 15
I su' to root, and get useradd not found. Maybe I Must run it inside of /bin/

So I need to perform both "useradd" and "smbpassword" in order to create a user?
 
Old 02-25-2011, 09:49 AM   #5
JeffC1
Member
 
Registered: May 2008
Posts: 89

Original Poster
Rep: Reputation: 15
Still no luck, there isnt a useradd utility inside of /usr/sbin
 
Old 02-25-2011, 09:54 AM   #6
JeffC1
Member
 
Registered: May 2008
Posts: 89

Original Poster
Rep: Reputation: 15
I SU to root, browse to /usr/sbin/ and when i run useradd i get "command not found"

the file exists
-rwxr-x--- 1 root root 74544 Nov 27 2009 useradd

Must I run this command as root? is SU not good enough? Root access is denied on this box and SU is my only option.
 
Old 02-25-2011, 10:35 AM   #7
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
Option 1:
Use "su -" to have the root's path.

Option 2:
Run "/usr/sbin/useradd". Using with the full path.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Failed to find entry for user david_wliu Linux - Networking 9 12-14-2013 09:15 AM
Problem creating samba 3.x user account kaplan71 Linux - Software 1 07-16-2009 02:19 AM
what is syntax of linux commands apexofhorizon Linux - General 3 07-16-2007 06:21 PM
[Samba] Execute commands depending on user billiejoex Linux - Software 1 10-25-2005 01:01 PM
samba - creating network user account dclark Linux - Networking 5 04-10-2004 10:13 PM


All times are GMT -5. The time now is 09:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration