Debian :: Only Get Either Guest Or Login Samba Users To Work

Jul 10, 2010

I'm trying to get samba working on a debian/xebian box to use as a fileserver. I have a HTPC which is win 7 and a laptop which is OS X. I've installed SWAT and Samba to manage the whole settings. I'm trying to get it setup so that there's a user which has access to my ~/ and a guest user which just has read access to ~/Media/ so that the Media centre can read all the files from it without having to login.

The problem is when I have map to guest set as NEVER I can access the samba ~/ and I'm asked for a username and password which I login with fine and can access the files on both share ~/ and ~/Media. However when I set the map to guest to bad user or bad password I can access the share for ~/Media. But when I try and access the share ~/ I don't get any login box and I immediately get the error "Can't access share permission denied" or an error along those lines.

Here's my /etc/samba/smb.conf
# Samba config file created using SWAT
# from (
# Date: 2010/07/10 20:39:16

# Global parameters
workgroup = MS_HOME
server string = %h server (Samba %v)
obey pam restrictions = Yes
passdb backend = tdbsam, guest
passwd program = /usr/bin/passwd %u
passwd chat = *EntersnewsUNIXspassword:* %n .....

How to get it working so I can have a guest share for my HTPC and a logged in user for my private files?

View 1 Replies


Ubuntu :: Samba Installation With Access To Guest Users

Apr 19, 2011

All I want is a simple Samba installation that anonymous users/guests can access. I have modified the smb.conf file so much using 'tips' that should enable a simple folder share. Nothing works. If I share the folder using Nautilus share then the folder is accessible without any credentials from only Win7 and android ES File Explorer. XP can't see the folder, nor can any other linux device. I want to switch to linux as a main OS but without shares it's not practical. Does anyone have a stripped down smb.conf which provides guest access to a single folder?

Here's the latest testparm -s
$ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
workgroup = MSHOME
server string = %h server (Samba, LinuxMint)
security = SHARE
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Entersnews*spassword:* %n
*Retypesnews*spassword:* %n
*passwordsupdatedssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
path = /home/mint/Shared
read only = No
create mask = 0777
guest ok = Yes

comment = All Printers
path = /var/spool/samba
read only = Yes
create mask = 0700
guest ok = No
printable = Yes
browseable = No

comment = Printer Drivers
path = /var/lib/samba/printers
read only = Yes
guest ok = No

View 5 Replies View Related

Server :: Samba Share - Disable The Default Guest User Login?

Jul 20, 2011

I have a samba server with security user. I have a number of shares inside the share with different users logins. But while accessing the shares from windows, in the login prompt, by default username it takes as the guest. How will I disable the default guest user login ?

View 2 Replies View Related

Fedora Networking :: Samba Guest Account With Password Of 'guest'?

Mar 16, 2009

I have a local file server running Samba on Fedora 9. It's already configured and serves a few people without any problems. I am now trying to set up a new read-only share with the username 'guest' and the password 'guest'. However, with no success so far! If I log on as 'guest' with the password 'guest' like so:


su - guest
No problem. Once logged in, if I try:


smbclient //samba/share

I'm prompted for a password. If I enter 'guest' I get:


session setup failed: NT_STATUS_LOGON_FAILURE

If I enter nothing (null) I get:


Anonymous login successful
Domain=[RIVER] OS=[Unix] Server=[Samba 3.2.8-0.26.fc9]
tree connect failed: NT_STATUS_LOGON_FAILURE

View 8 Replies View Related

Fedora Installation :: Domain Users Logged Out On Login Using Winbind - Samba

Nov 12, 2010

Have recently setup Samba on a fresh install of Fedora 14 so that I can use it as a workstation in a Windows 2003 (win2k3) domain.

The install of Samba seems to have worked as I can connect to the Domain using ADS and kerberos. selinux and firewall have been disabled until I have it working 100%

The problem lies when i try to login to Gnome or TTY. It begins to create the home directory for the domain user logging in but after a certain process Fedora logs the user out of the system.

Have looked through several log files (/var/log/messages, log.winbindd, log.winbindd-dc-connect) but am unable to debug it any further.

Have posted the config files below which shows the Fedora machine is successfully connected to the domain as it lists its groups, users and validates logon credentials - it just won't logon!

Where i can go about debugging. Also if you need additional configs.

View 1 Replies View Related

Server :: Connect Samba With Ldap To Make It Simpler For The Users To Login?

Jun 24, 2011

I`am just trying to connect Samba with ldap to make it simpler for the users to log in. We have already attached squid, so by that we thought it would be easy to do the same with samba. I think we did something wrong with the ldap config for the os with is btw:

SUSE Linux Enterprise Server 11 (x86_64)
We added
ldap admin dn = cn=xxx,o=xxx


View 1 Replies View Related

Server :: Samba Login/passwd Client - Why The Users Id Arent The Same On Every Machines?

Feb 8, 2010

I am encountering this issue:

Samba login/passwd client : why the users id arent the same on every machines?

So the client side config looks like this:


/etc/pam.d/ files :




View 4 Replies View Related

Debian :: Login As Guest Using LightDM?

Mar 20, 2015

I'm trying to login as guest, but this option does not seem to be available even after changing the LightDM configuration file. I'm on Debian Wheezy + XFCE 4.8. My /etc/lightdm/lightdm.conf looks like this:


[Code] .......

View 3 Replies View Related

Debian :: List Users At Login?

Oct 20, 2010

Just installed Debian on a laptop. I'm not a Linux noob, been running Ubuntu / Kubuntu / Fedora elsewhere for a while. But first time with Debian (Gnome). [Broadly pretty happy so far. It may supplant Kubuntu on my desktop as the latter seems a bit of a resource hog.]I want the login screen to offer a list of users.I've tried System > Administration > Login Window > Localand chosen Themed with face browser from the dropdown marked Style:I'm using Bijou (though I've also tried some of the others) as my theme, in case that makes any difference.I haven't got any pictures set up for users. It's not particularly that that I want, just a list of users to choose from rather than having to type in your username each time. It's a family setup, no big security worries, so easing typing would be nice.

View 5 Replies View Related

Software :: Mapping Linux Users With Widows Users Using Samba

Jul 11, 2009

I work as an system administrator for AIX and Linux servers. We have an FTP server running in Linux which has shared folders to Windows domain using Samba. The new requirement is to map users created to Linux machine to Windows users in such a way that, when a user logins into Windows machine with an ID say "X123" in domain "TEST", his access control to the samba shares should reflect based on the same user ID created in Linux machine.(FYI. Both the Windows and LINUX machines are in same network and domain). Please let me know the step by step procedure to configure Linux machine (smb.conf entries or any new file to be created for user mapping) to identify Windows user Login and provide access restrictions accordingly.

View 1 Replies View Related

Debian Configuration :: Newly Created Users Can't Login?

Aug 27, 2010

i've written a bash script to add new users to our system. the script works so I won't bother you all about that. when a new user is created with it, they can immediately login to our domain from any terminal, which is good. However, the newly created user is unable to login to debian at all, and so cannot access the server. when attempting to do so, they get a message like "the system administrator has disabled your account". This is a good thing really as normal users have no need for debian login, but I do need to add a few admin users who will need direct access to the server machine.

/usr/sbin/useradd -g smbusers -d /home/$username -s /bin/false -m $username
passwd $username
smbpasswd -a $username

This is the code I'm using to add the user. The rest of my script is just a wrapper and GUI. I figure the login shell may have something to do with it, so I tried changing the shell of a user to the default /bin/bash. This resulted in the user being able to login - sort of. Gnome doesn't load though, and there's a cascade of errors across the screen about things failing to save or load settings. mostly stuff like nautilus, X, and gnome. the desktop background is black and there's no interface. Logging in with a previously existing account works fine though. Clearly I have an issue somewhere.

View 1 Replies View Related

Ubuntu Servers :: Add Windows & Mac Users As Samba Users?

Nov 23, 2010

If I want to add Windows & Mac users as Samba users, must I first add them all as Ubuntu users? If so, since none of the other users will actually be working on the Ubuntu Server, how do I disable the other non-admin users on the Ubuntu Server login screen. I am using Webmin to administer some server settings, and command line for others.

View 3 Replies View Related

Debian :: Samba - 7.0 Wheezy And Windows 7 Cannot Login

Feb 23, 2016

I'm using Windows 7 & Debian Wheezy,and samba is the software that I use to share the folders/files for Linux & Windows.

The issue is one of my users(nv) cannot login to her folder in Linux using his windows credentials(the password keep prompt).But If I'm using my windows password she can access to her linux folder.But it is a temporary solution as when she restart the pc,the password authentication will prompt again.

This is my smb.conf file:
# Sample configuration file for the Samba suite for Debian GNU/Linux.
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example

[Code] .....

View 1 Replies View Related

General :: Any Way To Limit X Number Of Samba Users By Samba?

Oct 12, 2009

Is there any way to limit x number of samba users by samba ? Say if there are already 5 samba users using the share, I would like to restrict any futher samba requests.. How do i do that ?

View 1 Replies View Related

Ubuntu :: Lock Down Gnome For Guest Users?

May 21, 2010

I am volunteering to set up a computer lab for a small private school on an extremely limited budget. I love Ubuntu for my home, and on my server at work, but have never used it in a school before. I would like to "lock down" all the control panels, pretty much everything except for a few applications (open office, firefox, and some educational games, of course). I don't want the students (who will be automatically logged in as guests) to be able to make changes, or unintentionally mess things up.

Alternatively, at the public school I work at, we use Windows (sigh) that has been "frozen" using a program called Deep Freeze (similar to windows "steady-state"), which causes any changes a user my make revert back to default when rebooted. Is there a Linux equivalent? That may work too!

View 9 Replies View Related

Ubuntu :: Can't Add Neww Users Guest Session Not Working

Mar 19, 2011

Ubuntu 10.10 x64.It's been a little over a week since I *rebuilt my system after a gdm or gnome issue and now I'm having an issue with the guest session not working and I'm unable to add a new user. It says "incorrect data" or something like that. This is more than annoying. Why is my system decaying so rapidly? I'm not adding anything to the system that isn't approved by Ubuntu. it's virtually a stock build, minus some changes to the look and feel category. Is this possibly a security issue? My routers up and running and I turned on UFW.

.1) Can't add new users
.2) Guest session will not start.
.3) Should I be concerned about my security?

View 2 Replies View Related

Debian Configuration :: Samba Denies Login After Upgrade To Jessie

Jan 2, 2016

I just upgraded to jessie and now Samba won't let me log in anymore. I merged smb.conf manually. It now looks like this (removed comments):

Code: Select all[global]
   workgroup = WORKGROUP
   dns proxy = no
   bind interfaces only = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0

[Code] .....

With smbclient logs as follows:
Code: Select allsmbclient -L 192...

Enter user's password:
session setup failed: NT_STATUS_UNSUCCESSFUL

If I provide a wrong password, it raises NT_STATUS_LOGON_FAILURE, also if retry with the correct password.

Not sure about what resolved the issue. But after I purged samba, reconfigured it, added the users AND set www-data's shell to bash again (which was changed during the update), it now seems to work

View 0 Replies View Related

General :: Only Limited Users Should Login In NIS (not All Nis Users) RHEL 5.4?

Aug 1, 2011

i have a NIS master server and 4 NIS clients. out of 4 nis clients two are acting as login servers ie users will login and do all their stuffs and the remaining two are application servers. But sometimes users login into applications servers and started doing all their developer's job. i want to allow only a limited number of users tointo this application users not all the users who are all part of the nis domain.all the systems are running RHEL 5.4 on hp's proliant x86_64 based servers. Please advice me how should i proceed? enabling ip tables is not possible in my environment.

View 1 Replies View Related

Ubuntu Networking :: Non-Guest Samba Shares Not Working?

Aug 7, 2011

I have some samba shares working where all I did was right click on the folder, enable sharing and enable guest access. These work fine.

However, when I tried to use the manual way:


to create samba shares, so that they would be password protected, I cant access them. In windows 7, the shares are visible so I click them, click "use another account" and type in my samba name and password I created, but I can't access them.

Here is smb.conf

# Sample configuration file for the Samba suite for Debian GNU/Linux.


View 2 Replies View Related

Networking :: Samba Asking For Password - Guest Share Enabled ?

Aug 21, 2010

I have an old laptop trying to mount a share with samba on a server.

Laptop and server both running ubuntu 9.04.

When I try to mount a share on the server

I get a password prompt, and no server passwords work.

This is a guest share, and my two windows laptops mount it no problem with no password.

Here's the relevant part of the smb.conf:

Laptop and server are on the same workgroup.

View 4 Replies View Related

Server :: Samba Guest Account Options Seems Not Working?

Apr 13, 2010

I configuring samba under Fedora 12, i just set in samba dialog Server Settings->Security and choose guest account: apache. The account is exist io the Samba Server, now i try to login from Windows to Linux share, server asks me login and password, however when i set apache as login and not set password, server asks me login again as the password is incorrect. As i understand under guest acount can login any windows user without the password.

View 4 Replies View Related

Ubuntu Servers :: Basic Guest Samba Share No Worky?

Oct 18, 2010

I've been running Samba for a couple of years now. Bumped up from 9.04 to 10.10 server (64 bit), and nothing wants to work. I have a really simple share that I want to be accessible by all Windows clients without a login (guest access). Here is my config:

security = share


View 3 Replies View Related

Ubuntu :: Samba Guest Shares - Win7 And Android OK But Other Fails?

Apr 18, 2011

I have Samba guest shares working - win7 and android tablet see the shares. However, a media player just reports No Folders Found. The media player can see Win7 and Android samba shares. Here's the testparm -s

mint@mint ~/Desktop $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"


View 8 Replies View Related

General :: SSH Login - For Additional Users After Password-less Login Setup

Feb 10, 2010

I've set up password-less login for user1 on a Ubuntu machine to login automatically into a Fedora box using the publickey authentication method. Everything is working smoothly. Now, there is a user2 on Fedora but he does not have an account on Ubuntu.

I tried to login as user2 from Ubuntu to but got the following error :


Predictably neither scp or sftp work either. I have several questions as a result.

1.Is the SSH server rejecting user2 login because I am inadvertently using user1 keys (as I am logged in as user1) ?

2. Do I need to have a user2 account on Ubuntu and public/private key authentication setup with Fedora for user2 to be able to login ?

3. Is there a method I can use to password login as user2 from Ubuntu to Fedora (even though there is no user2 account on Ubuntu) AND still keep password-less login for user1 or do I have to have password-less login for both ?

At present the only way to access the user2 account from Ubuntu is to SSH using the user1 account and then su to user2.

View 3 Replies View Related

General :: Using Samba To Share A Folder From A Guest With A Windows Host In VirtualBox

Mar 15, 2011

I would like to share a folder from a Linux Guest with a Windows host (with read and write access if possible) in VirtualBox. I read in these two links: here and here that it's possible to do this using Samba, but I am a little bit lost and need more information on how to proceed.

So far, I managed to set up two network adapters (one NAT and one host-only) and to install Samba on the Linux guest, but I have the following questions now: What do I need to type in samba.conf to share a folder from the Linux guest? (the tutorial provided in one of the links above only explains how to share home directories) Are there any Samba commands that I need to run on the guest to enable sharing? How do I make sure that these folders are only available to the host OS and not on the Internet? Once the Linux guest is setup, how do I access each of the individual shared folders from the Windows host? I read that I need to mount a drive on Windows to do this, but do I use Samba logins, or Linux logins, also do I use localhost? or do I need to set up an IP for this?

View 1 Replies View Related

General :: Share A Folder In Samba With No Need Of Password For Individual User Not Guest?

Jun 13, 2011

I would like to know how to share a folder in samba with no need of password for individual user without using guest

View 5 Replies View Related

General :: Login Work Around - Debian?

Aug 30, 2010

I am inputting either the incorrect username or password in the login page (the computer running Debian is not specific about what is wrong)is there a way of bypassing this screen?

View 3 Replies View Related

OpenSUSE Network :: FSTab, Cifs And 'guest' Login?

Jul 15, 2010

i'm trying to setup a permanent CIFS share from my nas, but it keeps prompting for a password dispite GUEST access set on the share.FStab is as follows:

// /mnt/nas1_media/ cifs guest,_netdev 0 0
if i do


View 5 Replies View Related

Ubuntu :: Guest Session: How To Configure And Available From Login Screen

Jan 8, 2010

I like very much the Guest Session feature of Karmic, it comes very handy when someone needs to use your computer. However, it's only available if I'm already logged in, it won't show this option at login screen. Is there any way to make this possible? Also, I once tried the guest session and configured its appearance to my taste. The next time I entered, though, the default desktop reappeared. I know this happens because no setting is permanently stored for this session, so the only solution I can think of is to change the default configuration it is loaded from.

View 4 Replies View Related

Ubuntu :: Install Firefox Add-on To Guest Session At Login?

Jun 7, 2010

Adding Firefox add-ons to Guest Session?I wanted to include Add-on to Ubuntu Guest Session Firefox.Is there a proper or better way to do this? Procedure I used was as follows

1. Login to Ubuntu to a user account with sudo privileges (later sudoer account).

1. Switch to Guest Session

2. Install relevant Add-ons

3. Check what the home folder of the Guest Session is. It should be something like /tmp/guest-home.xxxxxx where xxxxxx = six random characters.

4. Switch to sudoer account

5. Open terminal and type


gksudo nautilus


I tested this with Flashblock and it seemed to work. I also admit that since I did the thing for the first time it was not that straight forward for me, but above procedure should work. With quick Googling I was unable to find straight forward method. There is a way to install Add-ons to all users from command line using -install-global-extension but this was not what I wanted to do. I wanted the Add-on just for the temporary guest account.

View 4 Replies View Related

Copyrights 2005-15, All rights reserved