SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
...
# Administrator user group, used to match @SYSTEM in cupsd.conf policy rules...
# This cannot contain the Group value for security reasons...
SystemGroup sys root
...
Add the user to the sys group.
Or add users group to the SystemGroup list
Code:
SystemGroup sys root users
Or create a lpadmin group, add the user to that group and modify SystemGroup.
Add yourself to the lpadmin group. Then log in again.
hazel: There is no lpadmin group and adding it and adding the user to it did nothing.
Alien Bob: love your worstenbroodjes. I do generally read man pages and web-search before posting here. On re-reading, the line,
Quote:
"@SYSTEM" maps to the groups listed for the SystemGroup directive in the cups-files.conf(5) file.
So, I changed the line in /etc/cups/cups-file.conf from SystemGroup sys root to SystemGroup sys root users and restarted cups. That seemed to do it!
Next, I want to see my Windows shared Officejet. In the Settings > Add Printer > Select a Printer to Add, I chose "Windows Printer via SAMBA" per instructions at http://www.howtogeek.com/191323/how-...-on-a-network/, and entered: smb://alluneedizluv/rover/MarksOfficejet, where "alluneedizluv" is the workgroup, "rover" is the Windows host and "MarksOfficejet" is the sharename of the printer. I entered the Windows user and PW. So far so good (maybe).
Then I tried printing a test page. I got the message: "Paused - Can't load /etc/samba/smb.conf - run testparm to debug it". This is doubtless because samba is not running on the Linux host. So, next question, what should go in my smb.conf file? I've snagged the following from https://www.samba.org/samba/docs/man...plePrintServer. Does this look right?
Code:
[global]
workgroup = MIDEARTH # should I change to ALLUNEEDIZLUV?
netbios name = GANDALF # should I change to Linux hostname?
security = SHARE
passdb backend = guest
printing = cups
printcap name = cups
[printers]
comment = All Printers
path = /var/spool/samba
printer admin = root # what about this?
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No
I'll have to say, that example as-is doesn't work:
Code:
$ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: Ignoring invalid value 'SHARE' for parameter 'security'
Error loading services.
More info ... I changed to the as-shipped smb.conf:
Code:
[global]
workgroup = MYGROUP
server string = Samba Server
server role = standalone server
log file = /var/log/samba.%m
max log size = 50
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
And I changed my connection string to smb://192.168.0.41/MarksOfficejet, using the actual IP instead of the hostname (there is no DNS on this LAN). Now my error message is different when I go to print the test page, I get a timeout message and after it retries I get:
Paused - 'Unable to connect to CIFS host after (tried 3 times)'
And that's that! I cannot try sending the test page again as it is stuck on that message, forever, even after rebooting. The only way I can retry this is to delete the printer and add it back in again.
(slight correction: I can go into http://localhost:631/printers and cancel the jobs and retry the test page. However, Settings > Printer still shows "Unable to connect ...", forever.)
More info: Using http://localhost:631 I was able to see this same printer on its wireless IP. I used http://localhost:631 to connect to that printer and it worked, albeit I had to use the HP Officejet Pro 6830, hpcups 3.16.11 driver. The hpijs driver did not work.
Interestingly, this and the other HP printer on the LAN did not show up in KDE > System Settings > Printers > Add Printer ... or so I thought! Under Local Printers there are 2 blank hash-marks, no printer names. However, if I click on one hash-mark or the other the IP address and port for each of those printers does show up. Clearly a bit of a bug in the KDE printer setup program.
In order to have Joe-Regular-User change settings in http://localhost:631, I had to further modify cupds.conf:
Code:
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType None
# AuthType Default
# Require user @SYSTEM
# Order deny,allow
</Limit>
I added the line in bold and commented out the other lines. I did this in both the <Policy default> and <Policy authenticated> sections. If I don't do that, I have to enter the root or user's password -- annoying.
Still would like some help accessing the Windows shared printer. Has anybody done this?
Sorry, all this is still failing for me. Do I have to reboot the Windows computer after adding the LPD component? I'm not is a position to do that.
For lpd I've tried: lpd://192.168.0.42/MarksOfficejet and using the NETBIOS name: lpd://ROVER/MarksOfficejet.
For smb I've tried smb://192.168.0.42/MarksOfficejet, smb://usernameassword@ROVER/MarksOfficejet and smb://usernameassword@192.168.0.42/MarksOfficejet and smb://192.168.0.42/MarksOfficejet with password enter in the KDE config.
All attempts result in Connection failed.
smbtree gives:
Code:
$ smbtree -N
ALLUNEEDIZLUV
\\WKST_01 Samba Server
\\WKST_01\testLPD test
\\WKST_01\Officejet_Pro_6830_e-All-in-One Marks Officejet Pro 6830
\\WKST_01\zxcv zxcv
\\WKST_01\IPC$ IPC Service (Samba Server)
\\WATCHER WATCHER Samba Server
\\ROVER
where WKST_01 is the Linux computer, ROVER is the Windows computer, tesLPD is my LPD test config on Linux and zxcv is my samba test config on Linux. The printer Officejet_Pro_6830_e-All-in-One is the same printer connected to the printer's own wireless IP. That works just fine.
I'm missing something. smb.conf? Firewall? Windows setting?
smb.conf is
Code:
[global]
workgroup = ALLUNEEDIZLUV
printing = cups
server string = Samba Server
server role = standalone server
log file = /var/log/samba.%m
max log size = 50
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
The printer is physically connected to a Window 7 computer via USB. The computer name is ROVER, WORKGROUP: ALLUNEEDIZLUV. Control Panel > Hardware and Sound > Devices and Printers ? Right-click on HP Officejet PRO 6830 > Printer Properties > Sharing, shows the 'Shared' checkbox checked, and share name MarksOfficejet.
Yes, I would have expected to see this printer listed under ROVER in the `smbtree -N`. I must have something not set correctly in Windows. What?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.