LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-04-2006, 06:25 PM   #1
Txabuzer
LQ Newbie
 
Registered: Aug 2005
Location: Lake Forest, Ca.
Distribution: PCLinuxOS
Posts: 24

Rep: Reputation: 15
smb Printing


Hey guys
Im trying to use my usb printer thats connected to my Buffalo linkstation network attached storage, that is connected to my linksys switch, now the linkstation (NAS) needs a username and password for access. I believe Ive gotten the printer set up but when I try to print a test page it just keeps running and never prints so I think it might be a username and password thing.
My questions are
One: how do I make the printer good to go at anytime I want to print ie without typing a username and password everytime.
Two: Can I make it ready for printing anytime at boot like with a script or something.
The location of the NAS is smb://hd-hlaned1/share/, I read in fedora 5 bible that you can permanently mount an smb share file by putting an entry in fstab is this what I would want to do?
 
Old 12-04-2006, 06:41 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think that the printer will be another service than the NAS storage share.
Yes, you can include an smb share in your /etc/fstab file. The filesystem to use is either smbfs or cifs. man mount will give you all of the options you can use. One way to mount it is to have a credentials file which contains the username and password. This has the advantage where a process list won't reveal the password.
If this NAS device uses embedded Linux, it may also have cups. You'll probably need to read the fine manual for details. I really don't know how a NAS device would have drivers for an attached usb printer.
 
Old 12-04-2006, 07:13 PM   #3
Txabuzer
LQ Newbie
 
Registered: Aug 2005
Location: Lake Forest, Ca.
Distribution: PCLinuxOS
Posts: 24

Original Poster
Rep: Reputation: 15
I was under the impression that plugging the printer into the NAS via usb just made the printer visible on the network and that all you needed was a path to the printer.
For example when I set up , and I only think I set up the printer because like I said I cant print a test page, the printer in the gui config I entered an IP address and port number and after a little trial and error with that it took me to the print test page dialog.
 
Old 12-05-2006, 01:07 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I took a look at their manual. Postscript printers are supported. There are certain printers that are supported. Otherwise you need to run their configuration program to add support for the printer. In the future they will have a web base configuration. For now, I think you will need to run it from a windows machine or using wine.
The manual also mentions which USB port to use if you are adding a printer. In any case, I think you may need to select the printer from a list even if it is supported.\

But this is really an RTFM situation. You can't expect others to have to read the manual for you.
 
Old 12-05-2006, 11:57 PM   #5
Txabuzer
LQ Newbie
 
Registered: Aug 2005
Location: Lake Forest, Ca.
Distribution: PCLinuxOS
Posts: 24

Original Poster
Rep: Reputation: 15
"But this is really an RTFM situation. You can't expect others to have to read the manual for you."

No no I guess I didnt ask the question right I dont expect others to read the manual for me and I'm fine with a RTFM response I was just hoping someone could through a little light on the subject so I would know what key words to put into google or maybe a link to TFM. I dont know anything about networking or lans or anything really besides point and click and reinstalling, lots of knowlegde on that one
See I read that you could mount stuff that had username and password access when the system starts and I thought I could do that and when I clicked print the command would just go through, or that I could put the username and password in a script in say cups something
I know that postscript printers are supported and I chose my printer because it "just works" with linux.
I will set the NAS to use no password and set the whole thing up with winbloze if that does'nt work.

Last edited by Txabuzer; 12-05-2006 at 11:59 PM.
 
Old 12-07-2006, 01:57 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I was responding more to post#3. It does give instructions in the manual that instructs how to install drivers that aren't the ones already supported. In windows if you select the reconnect at login option, the share should alway be there for you to open. If the username and password is different then your own, then click on the underlined part about "connect as a different user". In Linux, you can either include the "username=" and "password=" options in an fstab entry, or you can create a credentials file that contains two lines.
Code:
              username = <value>
              password = <value>
Then use the "credentials=/path/to/your/credentials". It is good practice to make this file read-only by the ownder of the file. The reason for using a credentials file instead of using the "username=<value>" and "password=<value>" option is to prevent someone from looking up your password by reading /proc/<UID>/cmdline or by simply reading the /etc/fstab file.

You could also try using folders with the same username/passwords and groups on the NAS device as you have in windows. There probably should be a one-to-one coorespondence.

Good Luck!
 
Old 12-08-2006, 01:14 AM   #7
Txabuzer
LQ Newbie
 
Registered: Aug 2005
Location: Lake Forest, Ca.
Distribution: PCLinuxOS
Posts: 24

Original Poster
Rep: Reputation: 15
Got it thanks for the help Nice info on the credentials file to, the more security the better.
 
  


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
SMB printing red_hax0r Linux - Networking 1 06-19-2006 10:19 PM
Smb printing julc Linux - Networking 0 02-25-2005 05:16 AM
SMB Printing scottpioso Linux - Hardware 5 03-12-2004 09:07 AM
SMB Printing tonicnote Linux - Networking 1 06-11-2003 05:29 PM
SMB printing issues scottpioso Linux - General 1 05-05-2003 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:06 PM.

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