LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to create user smbprint (https://www.linuxquestions.org/questions/slackware-14/how-to-create-user-smbprint-939331/)

wufo 04-11-2012 02:52 PM

How to create user smbprint
 
I am trying to get my Brother DCP-7040 on my 13.37 shared with my XP box. I have the printer working local under CUPS, but I run into an immediate problem when setting it up for sharing with Windows. All docs I find call for a user smbclient to be created witht he following command
/usr/sbin/adduser --system --disable-password smbclient

but when I execute here is what I get (as root)
bash-4.1# adduser --system --disable-password smbprint

Login name for new user: --system

User ID ('UID') [ defaults to next available ]:

Why is the login name --system instead of smbclient?

tj

TommyC7 04-11-2012 03:06 PM

Because the input after "adduser" is "--system" and not "smbprint." Plus, the adduser command in Slackware is not necessarily the same in other distros. I haven't used adduser myself but it might create --disable-password as the second user after you setup the first user, then smbprint as the third user.

Perhaps the command you're looking for is "useradd" but I don't recall it having --system or --disable-password flags.

Also, are you saying that your Linux computer can print to the printer fine but your Windows box can't?

wufo 04-11-2012 03:53 PM

So, how do I create smbprint with password disabled? Does just leaving the password blank at the prompt work? when you login using it it still asks for a password, even though you just hit return and it logs in. Does disable-password mean it doesn't even prompt for a password?

And no, I have not got the Windows printing because I can't get samba working for Windows to even find the printer.

Good old Linux, you have to be an expert on every detail BEFORE you even try to use it.

tj

michaelk 04-11-2012 04:26 PM

You need to create a smb user but they are independent of the linux system users. smbprint is actually a command to print to SMB (typically windows) printers.

There is lots of info about samba but here is a link specific to slackware.

http://www.basicconfig.com/linux_samba_server_setup

Make sure the workgroup name is the same on both the slack and XP box.

wufo 04-11-2012 08:45 PM

Quote:

Originally Posted by michaelk (Post 4650503)
You need to create a smb user but they are independent of the linux system users. smbprint is actually a command to print to SMB (typically windows) printers.

There is lots of info about samba but here is a link specific to slackware.

http://www.basicconfig.com/linux_samba_server_setup

Make sure the workgroup name is the same on both the slack and XP box.

That was nice site for setting up a file server, but nothing on printers.

tj

michaelk 04-11-2012 09:16 PM

True, without seeing your smb.conf file it is difficult to tell what is happening. Typically if it has a printers section then all printers are automatically shared.

If a firewall is running make sure it allows SMB traffic. Can you see the linux box icon in network neighbourhood?

allend 04-11-2012 09:20 PM

The Samba documentation is very complete. Within Chapter 22 you will find this, which is probably all you need. http://www.samba.org/samba/docs/man/...ps-exam-simple


All times are GMT -5. The time now is 09:42 PM.