Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Linux


Advertisements:










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


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 192.168.1.65 (192.168.1.65)
# Date: 2010/07/10 20:39:16

# Global parameters
[global]
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 (Posted: 2010-07-10 20:33)

Sponsored Links:

Related Forum Messages For Linux category:
Ubuntu :: Samba Installation With Access To Guest Users
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
Code:
$ 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.
Server role: ROLE_STANDALONE
[global]
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

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

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

Posted: April 19th, 2011

View 5 Replies!   View Related
Server :: Samba Share - Disable The Default Guest User Login?
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 ?

Posted: 07-20-2011, 01:02 AM

View 2 Replies!   View Related
Fedora Networking :: Samba Guest Account With Password Of 'guest'?
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:

Code:

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

Code:

smbclient //samba/share

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

Code:

session setup failed: NT_STATUS_LOGON_FAILURE

If I enter nothing (null) I get:

Code:

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

Posted: 16th March 2009, 09:22 PM

View 8 Replies!   View Related
Server :: Samba Login/passwd Client - Why The Users Id Arent The Same On Every Machines?
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:

Quote:

/etc/pam.d/ files :

Code:

returns:

Code:

Posted: 02-08-2010, 01:58 PM

View 4 Replies!   View Related
Fedora Installation :: Domain Users Logged Out On Login Using Winbind - Samba
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.

Posted: 12th November 2010, 10:18 AM

View 1 Replies!   View Related
Server :: Connect Samba With Ldap To Make It Simpler For The Users To Login?
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:

Quote:
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1
We added
Quote:
ldap admin dn = cn=xxx,o=xxx

[Code]...

Posted: 06-24-2011, 02:58 AM

View 1 Replies!   View Related
Debian :: List Users At Login?
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.

Posted: 2010-10-20 17:03

View 5 Replies!   View Related
Debian Configuration :: Newly Created Users Can't Login?
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.

Posted: 2010-08-27 13:07

View 1 Replies!   View Related
Software :: Mapping Linux Users With Widows Users Using Samba
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.

Posted: 07-11-2009, 06:55 AM

View 1 Replies!   View Related
Ubuntu Servers :: Add Windows & Mac Users As Samba Users?
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.

Posted: November 23rd, 2010

View 3 Replies!   View Related
General :: Any Way To Limit X Number Of Samba Users By Samba?
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 ?

Posted: October 12th, 2009, 09:06 AM

View 1 Replies!   View Related
Ubuntu :: Lock Down Gnome For Guest Users?
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!

Posted: May 21st, 2010

View 9 Replies!   View Related
Ubuntu :: Can't Add Neww Users Guest Session Not Working
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?

Posted: March 19th, 2011

View 2 Replies!   View Related
General :: Only Limited Users Should Login In NIS (not All Nis Users) RHEL 5.4?
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.

Posted: 08-01-2011, 05:56 AM

View 1 Replies!   View Related
Server :: Samba Guest Account Options Seems Not Working?
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.

Posted: 04-13-2010, 03:28 AM

View 4 Replies!   View Related
Ubuntu Networking :: Non-Guest Samba Shares Not Working?
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:

[URL]

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

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

[Code].....

Posted: August 7th, 2011

View 2 Replies!   View Related
Networking :: Samba Asking For Password - Guest Share Enabled ?
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.

Posted: 08-21-2010

View 4 Replies!   View Related
General :: Login Work Around - Debian?
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?

Posted: 08-30-2010, 03:17 AM

View 3 Replies!   View Related
Ubuntu Servers :: Basic Guest Samba Share No Worky?
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:

Code:
[global]
security = share

[code]....

Posted: October 18th, 2010

View 3 Replies!   View Related
Ubuntu :: Samba Guest Shares - Win7 And Android OK But Other Fails?
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

Quote:
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$]"

[Code]...

Posted: April 18th, 2011

View 8 Replies!   View Related
General :: SSH Login - For Additional Users After Password-less Login Setup
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 :

Code:

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.

Posted: 02-10-2010, 06:24 AM

View 3 Replies!   View Related
General :: Share A Folder In Samba With No Need Of Password For Individual User Not Guest?
I would like to know how to share a folder in samba with no need of password for individual user without using guest

Posted: 06-13-2011, 11:40 PM

View 5 Replies!   View Related
General :: Using Samba To Share A Folder From A Guest With A Windows Host In VirtualBox
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?

Posted: Mar 15 at 20:20

View 1 Replies!   View Related
Ubuntu :: Guest Session: How To Configure And Available From Login Screen
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.

Posted: January 8th, 2010

View 4 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved