12-08-2011
Samba server guest connections
Hi,
I am trying to comprehend Samba's behaviour on one of my Arch systems and thus I'd like to ask a couple of quick questions:
The setup I'd like to build is just a small home network for file-sharing using guest connections.
Here it goes,
1) When using the following settings for guest connections,
map to guest = bad user guest account = nobody
does user 'nobody' have to exist both on Samba AND on the system's accounts?
If yes, is there any other way I can use Samba to serve guest connections without the need to create their respective system accounts? Why is that so?
2) If I change the second option to
guest account = myUnixAccountName
I notice that the system works perfectly well and serves guest connections just fine.
But how is that possible since myUnixAccountName doesn't exist on Samba?
Thanks in advance!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
suse linux 6.4 im running and i have port 110 for pop and smtp open, i have set up some email addresses for my friends, but they recieve errors saying that relaying is denied. i know this is to prevent spamming software from using my domain to send spam, but how do i let my users send their mail?... (6 Replies)
Discussion started by: norsk hedensk
6 Replies
2. UNIX for Advanced & Expert Users
Hi Guys,
Just wondering if anyone of you have been in a situation where you end up having around 100 close_wait connections and seems to me those connections are locking up resources/processes in the server so unless the server is rebooted those processes won't be released by the close_wait... (3 Replies)
Discussion started by: hariza
3 Replies
3. Shell Programming and Scripting
Given the following code
#!/usr/bin/perl -w
use IO::Socket;
my($handle, $line, $kidpid);
$handle = IO::Socket::INET->new(
PeerAddr =>"64.22.229.139",
PeerPort =>"4321",
Proto=>"tcp",
... (0 Replies)
Discussion started by: frequency8
0 Replies
4. Virtualization and Cloud Computing
Is there any command in VMware Server 2.0 to poweron/start the guests like we have vmware-cmd ESX server 3.5 .. (1 Reply)
Discussion started by: fugitive
1 Replies
5. Web Development
Hi
I have a solaris 9 OS with apache web server running on top of it. i want to know how many http connections are active at any point in time. (In other words how many users are accessing my website it at any moment of time)
How to get it..?
hit counters are not required...
----------... (0 Replies)
Discussion started by: aemunathan
0 Replies
6. UNIX for Dummies Questions & Answers
Server has more TIME_WAIT connections in Apache(port 80) Hi,
My webserver has 16GB of RAM and CentOS 5.5, Apache 2.2.3, It's shared webserver used of for webhosting. I have optmized the server as :
<IfModule prefork.c>... (4 Replies)
Discussion started by: chandranjoy
4 Replies
7. Red Hat
Hi everyone,
I am trying to set up a samba server using either the interface or the command line. However, I am unable to access the files found on the server. Can anyone tell me how to set up this server?
Thanks in advance (2 Replies)
Discussion started by: shakshakshuk
2 Replies
8. UNIX and Linux Applications
Hi,
i have a server installed samba+openldap (pdc). Need to migration windows server 2003 (active directory) object users, computers.
Where you can read how to do it? Or can tell me how to do it?
Thanks.
P.S. Sorry for bad english (0 Replies)
Discussion started by: ap0st0l
0 Replies
9. AIX
I am using AIX 5.3, its a application server, i am giving the support of OS & Hardware only, now i want to check how many connections are connected to my server, means how many people using my server.:confused: (4 Replies)
Discussion started by: reply.ravi
4 Replies
10. UNIX for Advanced & Expert Users
Good morning,
Is there any command to view remote conxiones an AIX server?
Thank you very much and best regards. (1 Reply)
Discussion started by: systemoper
1 Replies
sharing(1) BSD General Commands Manual sharing(1)
NAME
sharing -- create share points for afp, ftp and smb services.
SYNOPSIS
sharing [-a <path> [options]] [-e <share point name> [options]] [-r <share point name>] [-l]
DESCRIPTION
A list of flags and their descriptions:
-a <path>
add a new share point for the directory specified by <path>.
-e <share point name>
edit the share point record specified by <share point name>.
-r <share point name>
delete the share point record specified by <share point name>.
-l list all existing share point records.
Description of options The following options modify share point record attributes
-A <afp name>
use customized name <afp name> when using share point with afp.
-F <ftp name>
use customized name <ftp name> when using share point with ftp.
-S <smb name>
use customized name <smb name> when using share points with smb.
-s <flags>
use this option to modify individually, the sharing attribute for afp, ftp and smb. By default a share point record is enabled for
afp, ftp and smb. To modify the indiviual attributes AND the following flags as required: 100 (enable sharing for afp only), 010
(enable sharing for ftp only), 001 (enable sharing for smb only). Specify 000 to turn off sharing of a share point all together.
use customized name <smb name> when using share points with smb.
-g <guest flag>
use this option to modify individually, the "guest" attribute for afp, ftp and smb. The "guest" attribute specifies whether a ser-
vice will allow guest access to this share point record. By default a "guest" is enabled for afp, ftp and smb. To modify the
attribute, AND the following <guest flags> as required: 100 (enable guest access for afp only), 010 (enable guest access for ftp
only), 001 (enable guest access for smb only). Specify 000 to turn off guest access for the share point all together.
-i <inherit privileges flag>
use this option to modify the "inherit privileges" attribute for afp. The "inherit privileges" attribute specifies whether afp will
apply the classic privilege model to operations within this share point. By default "inherit privileges" is disabled for afp. To
modify the "inherit privileges", AND the following <guest flags> as required: 10 (enable "inherit privileges" for afp only). Spec-
ify 00 to turn off "inherit privileges" for the share point all together.
-n <customized record name>
Specify a <customized record name> to be used as the share point record name. By default the record name is the name of the direc-
tory pointed to by the share point record. This directory is specified bt the <path> when the record is created.
EXAMPLES
/usr/sbin/sharing -a /SomePath/ShareThisDirectory
This example shows how create a share point record for the directory "/SomePath/ShareThisDirectory".
/usr/sbin/sharing -e ShareThisDirectory -A SP1 -g 101
This example shows how to edit the share point record created above, adding a customized name "SP1" for afp servies, and enabling guest
access only for afp and smb.
FILES
/usr/sbin/sharing location of tool
Mac OS X Server June 2, 2019 Mac OS X Server