Go Premium for a chance to win a PS4. Enter to Win


Samba without passwords

Posted on 2000-03-11
Medium Priority
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

Question by:cliffhanger121599
  • 2
  • 2
LVL 40

Expert Comment

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.

Author Comment

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
LVL 40

Accepted Solution

jlevie earned 40 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...

Author Comment

ID: 2610205
Brill!   Just what I wanted

many thanks

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

877 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