LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Creating Samba user? How to find syntax or commands? (https://www.linuxquestions.org/questions/linux-newbie-8/creating-samba-user-how-to-find-syntax-or-commands-864882/)

JeffC1 02-24-2011 08:03 PM

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?

JeffC1 02-24-2011 10:19 PM

Still no luck figuring this out. Help?

frankbell 02-24-2011 10:38 PM

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

JeffC1 02-24-2011 10:52 PM

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?

JeffC1 02-25-2011 08:49 AM

Still no luck, there isnt a useradd utility inside of /usr/sbin

JeffC1 02-25-2011 08:54 AM

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.

goossen 02-25-2011 09:35 AM

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

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


All times are GMT -5. The time now is 09:52 AM.