Software :: Samba Protection - Two Users - Different Access
Jul 8, 2011
I have a Samba server running on a Red Hat 5.6 system that provides a large file share to both UNIX/Linux and Windows environments. There are two user accounts that can access this file share:
foo - has full access to ALL files in the file share
bar - has full access to just one directory tree ('dog') in the file share
I created two different mount points, one for foo and one for bar. I've set all of the files in 'dog' to be owned by bar, which works fine for the bar account. The problem is, the foo account can't access the files. Also, foo and bar need to be able to share files, by placing them in the 'dog' directory tree.
I'm not sure how to set this up using standard Samba tools. I've looked in the Samba GUI available with Red Hat, and don't see anything helpful there regarding my need. I've Google'd and have seen references to using ACLs with Samba. Is this the right solution to this problem, or have I missed something?
View 1 Replies
ADVERTISEMENT
Apr 28, 2010
I have configure few folders access by 3 users, In common folder only users that create that document can do changes. The rest of the users can only read the file but can not do changes. Ownership of the folder is admin, group is sambashare which already have the access create and delete files. All the 3 users already in sambashare main group, and they only can edit the file that they copy or create to the common folder .........
View 5 Replies
View Related
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
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
View 5 Replies
View Related
Aug 28, 2010
I have currently have opensuse 11.2 installed. I am trying to setup samba shares which you can only access as certain user. Currently looks like the only way I can access these share is use root username/password!
I want to which GUI I need to use to setup this up properly. And of course what setting to exactly to use.
View 2 Replies
View Related
Mar 4, 2010
I installed Samba on CentOS, create a principal share called "public" . I want to populate this share with subfolders, and to grant access rights to specific folders for specific users. The content of "public" will be visible for all Samba users, but they will have read/write access only to the specified subfolders based on my security policy. I need the best way for doing this kind of stuff...
View 1 Replies
View Related
Jun 26, 2009
Im trying to config my intranet to be accessible from inside the network (lan) without need of password and ask for a passwd for those who are viewing from Wan ....
Today my intranet can only be accessed from Lan, external access give me an Unauthorized message, I took look around, try #irc and still can get the appropriated help, I hope that someone here could help me on that...
A piece of my config:
Code:
View 4 Replies
View Related
Jan 7, 2011
I don't know if this is Just my Machine, or not. But here is it:
Ubuntu 10.01
Acer Aspire 7740
When the computer is locked. I can smiply go to switch users. when the list of users logins are shown all i have to do is click on my user name and it allows me into my account without typing in a password. I can lock the computer manually or wait for it to time out it doesn't matter. the switch users method allows me to bypass the password protection.
View 3 Replies
View Related
May 13, 2010
The company I work for, as usual, is Microsoft-centric. I'm attempting to integrate my Ubuntu server into the domain to allow domain users to authenticate to the server and access file shares using Samba. Here's my current configuration:
[Code].....
View 9 Replies
View Related
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
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
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
Oct 20, 2010
I would like to configure an access to folder
/fileserver
for two services : Samba and VSFTPD
How to do it ? How to create folder rights that samba and ftp user will have an access (read/write/delete) to all directories in /fileserver.
My system is CentOS. I`m starting samba and vsftpd like a root (/etc/init.d/vsftpd start etc.)
View 1 Replies
View Related
Jun 12, 2009
I've been running a Samba server under RedHat 8 for five years without a hiccup. I want to cut over to a F10 box but cannot get shares accessible. smbclient attempts fail over NT password error. SELinux is disabled. Server is visible on the network. Users require no password access to shared data.
smb.conf follows:
# Samba config file created using SWAT
# from UNKNOWN (>)
# Date: 2009/06/12 14:15:15
[code]....
View 1 Replies
View Related
Sep 13, 2010
I've done all this config [URL] This config for the "foo" folder:
("pruebas" its a user)
Code:
[foo]
path = /home/pruebas
ready only = no
guest ok = yes
[code]....
I have the [HOME] code too, its everything fine with it, and I cant connect with another user ("alfredo") from Red Hat to Windows XP with no problem... but as soon as I double click in "foo" directory, appears this:
[URL]
Already tried to disconnect from windows the directories with "net use" but it doesn't work
View 2 Replies
View Related
Mar 18, 2011
At my office we are having a samba sever, staff will access their respective folder from their Windows XP systems. I wish to track all user access activity like file creation, modification, deletion and etc. I tried smbstatus -v, from the output I am not able to guess what the user done. I am giving some of the results I get please help me or you can suggest best way to get access log.
Samba version 3.0.25b-0.el5.4
PID Username Group Machine
14721 govind govind tsl-019 (10.0.2.64)
4832 chandra chandra trivent-9b92c9c (10.0.2.106)
Service pid machine Connected at
[Code]...
View 2 Replies
View Related
Jun 14, 2011
All of sudden a working SAMBA server not allowing to login and deny permission for users to access it shares. When I check I checked the server directory rights are same, find no changes. and smb.conf is also same. when I checked closely I found the following error.
1. smbd.log show the following messages
[2011/06/14 16:07:15, 0] lib/util_sock.c:get_peer_addr(1232)
getpeername failed. Error was Transport endpoint is not connected
[2011/06/14 16:07:15, 0] lib/util_sock.c:read_data(540)
read_data: read failure for 4 bytes to client 0.0.0.0. Error = Connection reset by peer
[2011/06/14 16:07:36, 0] lib/util_sock.c:get_peer_addr(1232)
getpeername failed. Error was Transport endpoint is not connected
[2011/06/14 16:07:36, 0] lib/util_sock.c:get_peer_addr(1232)
[Code]...
View 2 Replies
View Related
Apr 24, 2010
When I try to add a user to samba (using the GNOME UI) in F12, after enter all the information and click OK.it will just hang for about 20 seconds, and then do nothing. Window is still there, I click OK again and same thing.heres the steps i followed:
1) click preferences, Samba Users...
2) click add user
3) select user "joe" (example) from drop down of users
4) enter "joe" windows user name
5) enter password for joe (same as user password)
6) click OK
7) hangs 20 seconds then nothing.window is still there.click OK again same thing no user added
View 1 Replies
View Related
Jul 18, 2010
I have two ubuntu 10.04 64-bit servers running samba (3.4.7) and openLDAP (2.4.21). The LDAP directory is successfully replicating between the two servers. These servers also serve as LDAP servers for sudo, pam, nss, and other services for a dozen servers without issues. The BDC samba is configured to use itself for LDAP. I connected to the BDC using the samba ldap credentials and verified I could a) see the Computer object b) read NTPassword and LMPassword. The workstations can authenticate to the domain successfully against the PDC. If a workstation boots and connects to the BDC, they login fails with:
Code:
[2010/07/18 11:46:23, 0] rpc_server/srv_netlog_nt.c:336(get_md4pw)
get_md4pw: Workstation MACHINENAME$: no account in domain
[2010/07/18 11:46:23, 0] rpc_server/srv_netlog_nt.c:584(_netr_ServerAuthenticate3)
_netr_ServerAuthenticate3: failed to get machine password for account MACHINENAME$: NT_STATUS_ACCESS_DENIED
Successful authentication against the PDC shows:
Code:
[2010/07/18 11:59:20, 1] smbd/service.c:1063(make_connection_snum)
MACHINENAME (192.168.2.145) connect to service netlogon initially as user username (uid=30000, gid=512) (pid 1727)
[2010/07/18 11:59:20, 1] smbd/service.c:1063(make_connection_snum)
MACHINENAME (192.168.2.145) connect to service data initially as user nobody (uid=65534, gid=65534) (pid 1727) .....
View 1 Replies
View Related
Apr 3, 2011
If I try to connect to my Samba server with one user ("alex"), everything works fine. If I try to connect with a different user, ("guest"), I receive the error:
Code:
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Both users have been added as samba users using `smbpasswd -a`
These are the settings I've added in my smb.conf file:
[Code].....
View 6 Replies
View Related
Jan 25, 2011
i have 3 groups on a samba server with about 30 user per group.I would like to know how to delete all the user in a group before adding new users.
View 1 Replies
View Related
May 26, 2009
I am trying to configure samba for anyone of the scenarios in the subject. here's what my smb.conf looks like:
Code:
workgroup = RnD
[Samba Share]
comment = Samba share on Ubuntu!
path = /srv/sharedfolder
available = yes
[code]....
The error while trying to connect to the share is:
smbd/service.c:make_connection_snum(1082) Can't become connected user!
View 12 Replies
View Related
Sep 26, 2010
I have configured ldap on Debian5 and samba on another machine, all servers are running ok, but when i try to add users, it gives me an errror that "unknown user"
View 4 Replies
View Related
Sep 21, 2010
I want to set a log off script for samba domain users. Actually I am facing a huge temp files related problem. So I want to set a batch file which will run when domain user log off. When user logout then batch file run and delete all temp files.I have already set batch file local group policy and it works for me, but I wants to set it from server side.
View 1 Replies
View Related
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 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
View Related
Sep 3, 2010
How can I set permissions for users within the share?
Example: I have a share called Programming and some user can create folders within it most others can not, can read the documents.
How do I set permissions?
View 2 Replies
View Related
Jun 6, 2011
i installed Samba on my Fedora, have created couple of Share directories and assigned users accordingly, that part is apsolutly fine and working without any problem, but now the next step is i want to assign the quota limits to users to save the disk space,
View 2 Replies
View Related
Jan 7, 2010
I need to add linux and samba users using a shell script, it falls over because you are prompted to set a password.
I had a similar problem when installing the samba package using a script because it asks for confirmation after the command, I got round it using --force-yes -y as below.
apt-get install samba smbfs swat --force-yes -y
I suspect and hope you can do something along those lines when creating a linux user and a samba user, something like
smbpasswd �a username ?
View 3 Replies
View Related
Jun 8, 2011
I would like to know how can I share folder with samba that samba does not show it to those users that have no access to it?
View 4 Replies
View Related
Jan 9, 2011
want to made 2 users in samba by which windows machine we access share, say user1 has read,execute permission, user2 has read write delete update full permission. we have done user1 configuration as premia user. we need your guideline for user2
we change the smb.conf file
# less /etc/samba/smb.conf
[global]
[code]...
View 2 Replies
View Related
Aug 7, 2010
how to configure samba share that users from ip pool (for example 192.168.1.200-210) have accest without login and rest users form ip pool (192.168.1.2-199 and 192.168.1.211-254) have to past autorization.
View 1 Replies
View Related