Solved

Samba without passwords

Posted on 2000-03-11
4
295 Views
Last Modified: 2010-03-18
Is it poss. to run a Samba server with connection to Win98 WITHOUT passwords.   If so how?   I am having real fun trying to set it up WITH and wonder whether it is worth it.

many thanks

Cliff
0
Comment
Question by:cliffhanger121599
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2608319
Well, sort of. It depends on which side you are talking about not having passwords on.

Where are you getting stuck and what have you tried? it usually isn't to difficult to get passwords working with Samba.
0
 

Author Comment

by:cliffhanger121599
ID: 2609308
Since posting the question I have managed to get Win98 to log into the my Samba server by inc. the win user name and password in the smbpasswd and passwrd files in Linux - this was where the problem lay.    While I am here though, can I ask how one gets complete access to the my linux box from Win98(i.e. what do I inc. in smb.conf?) and once I get this whole thing on the road is there some sort of graphical front end to Samba so I can copy files etc. from Win98 to my Linux box?   Yes, i am new to Linux!!

Many thanks
0
 
LVL 40

Accepted Solution

by:
jlevie earned 10 total points
ID: 2609609
That's what I suspected that your problem was, but I was going to do a little fishing to find out.

By default, Samba normally creates a [homes] share that automagically creates a "windows share" for the windows user as they are authenticated. This share points to that user's home dir, which follows the Unix model that "each user has a home dir and it is the current working dir as soon as the user logs in".  Samba also defines a [tmp] share that is publically accessible and publicly readable/writeable. You can create additional shares in the smb.conf file with whatever level of access desired (user only, unix group only, public, etc).

Note that the Unix permissions on a directory override any that are applied in Samab. For instance, If I create a "writeable public share" in Samba that points to a directory owned by root and whose files are owned by root in mode "rw-r--r--", every one will be able to read the files but won't be able to overwrite an existing file. Whether they can create a new file depends on the directory permissions. If the directory is mode "rwxr-xr-x" then they can't.

I think that if you look at the smb.conf file you'll see the [homes] and [tmp] definitions, which should give you some ideas about how to create other shares if you need them. As distributed, smb.conf has lots of examples and "man smb.conf" lists all the options and what they do. Of course you can use "Windows Explorer" to manipulate the files in the shares, look in "Network Neighborhood" for the share names.

The Samba package includes smbfs support for the mount command and the smbmount utility. This allows you to mount a windows share on the Linux filesystem. There's an example mount command in the manpage for smbmount (man smbmount). Once mounted you can use a command line to manipulate the files (ls, cp, rm, etc) or you can point a GUI filemanager at the files).

How's that...
0
 

Author Comment

by:cliffhanger121599
ID: 2610205
Brill!   Just what I wanted

many thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now