Server :: Unable To Access Samba Share On CentOS 5.4 From Windows XP Or Vista
Jan 23, 2010
I can't be the first one with this problem. What am I missing?
I have setup Samba servers in the past, just none under SELinux. The last one I configured was a couple years ago, so I wouldn't doubt I'm a bit rusty.
---- Environment summary:
Clean server install of CentOS 5.4 includes SELinux
- lets call this 'server'
- updated samba to 3.0.33-3.15.el5_4.1
Client1 - Windows XP sp4 - WINS configuration uses 'server' noted above
Client2 - Windows Vista - WINS configuration uses 'server' noted above
---- What works / what doesn't ------
Clients can see the server (XP and vista) in network neighborhood.
The following does not work from windows (xp or vista)
net view \server
net view \server-ip
net view \servershare
This does work on the server
smbclient -L \server
smbclient -L \server --user validuser
smbclient -L \client1 --user validuser
---- What I have configured and tried (config/output below) --------
firewall ports for samba are open
SELinux enforcing or permissive
file context is set on share
samba booleans are set
-A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT
-A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
-A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
-A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p udp --dport 139 -j ACCEPT
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: enforcing
Policy version: 21
Policy from config file: targeted
# getsebool -a | grep smb
allow_smbd_anon_write --> off
smbd_disable_trans --> on
# getsebool -a | grep samba
samba_domain_controller --> on
samba_enable_home_dirs --> on
samba_export_all_ro --> off
samba_export_all_rw --> off
samba_share_fusefs --> off
samba_share_nfs --> off
use_samba_home_dirs --> on
virt_use_samba --> off
I'm trying to set up a test system for Windows 7. I've been having trouble getting it to map drives on the domain where I work, so I wanted to set up a test system with a similar setup so I can play around with settings without mucking up our network. Only problem is I can't get it configured to even work with XP, which does work on our domain.
When I type \server in the Run box I get the explorer window showing all of the test shares I've set up. But when I try to access them, it says the network path could not be found. Here is my smb.conf file:
[global] workgroup = MAJOR netbios name = VPN realm = MAJOR.COM
I'm pulling my hair out trying to figure out what is wrong with my Samba share. I have set up a directory /samba to serve up some movies, music, etc, on an Ubuntu 10.04 Server box. For now, I have given that directory 777 permissions, along with the subfolders:
Code: drwxrwxrwx 4 michal michal 4096 2010-06-22 18:02 Apps drwxrwxrwx 3 michal michal 4096 2010-06-22 19:02 Music drwxrwxrwx 3 michal michal 4096 2010-08-14 19:27 Pics drwxrwxrwx 5 michal michal 4096 2010-06-22 19:48 Video This is how my smb.conf file looks like for this particular share:
Code: [share1] comment = share1 browsable = yes path = /samba write list = michal Furthermore, I went ahead and mapped the Samba user to my Linux user account in /etc/samba/smbusers:
Code: michal = "michal" When I try to login from a Windows machine using michal as the username, I can see the folders, but I am unable to create new files on the share. Considering that the file system permissions are liberal on the share directory, I have no clue as to why I'm still getting denied write permission.
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...
I'm trying to set up a VPN connection between our CentOS 5.3 server at work and my bosses XP computer at home. At this point, we are kinda locked into Quickbooks. I'm testing the connection from my XP boot at home to see if it works. I can log into our servicemanuals easily enough from XP at home however, the windows takes forever to update. I have the Samba server only listening on port 445 because is seems to work more efficiently at work. I connect to the Samba shares via linux from home and everything works well but, when I try to do anything with the shares from Windows client at home, it's very slow!
I'm thinking that it must have something either to do with the Windows OpenVPN client or the client.conf file. Is there anything I should look at in the .conf file for answers?
I got my server set up with 10.04, and with everything installed: DHCP, SSH, Samba, VBox, etc.
DHCP, SSH work fine, but I am having problems where I cannot ping the hostname of the machine.
It worked for a few minutes after I got everything installed and now it's not letting me connect via hostname. I can connect fine if I use the IP address. I cannot ping the machine by hostname unless I add it's IP address to the hosts file.
cannot restrict share access to a single user. I've played with the security and valid users options in the smb.conf and I can get it to mount if I remove the valid users option, but this does not provide the access restriction I need. I also left it open and tried making the folder permissions rwx for backupadmin only and that didn't work. I'm using a credentials file which I include below, but I've tried manually entering them in the command too.
[root@aaphst02 /]# mount -t cifs //aapsan01/aapxen01 /mnt/aapxen01 --verbose -o credentials=/root/smbcreds mount.cifs kernel mount options: unc=//aapsan01aapxen01,ip=10.0.1.34,user=backupadmin,ver=1,rw,credentials=/root/smbcreds,pass=********
I have set up RHEL 5 file server with Winbind and samba services running.I am able to assign and authenticate windows XP users against my RHEL 5 server.No issues.But one or two of my users are using Windows 7 Ultimate edition and they are not able to access my network samba shares.I can view the shares in windows 7 box but trying to access gives me "network access denied error".But i can access the same share in Windows xp machine for the above tested users.Working great but not in windows 7 box.I haven't tested with Vista OS yet.
This is my first post. I am not all that new to Linux. I have done lots of reading on the OS but always felt a little timid when it came to trying out stuff.Here is my problem I have a stand alone samba server I am trying to setup to share all my digital photos and other doc. I can see the share from other machines. On the windows machines you can see the users home directory and the share itself in an folder icon. Whenever I try to access the share it asks for a passwd. I enter the passwd and the share folder is visible when I click on the folder I get and error message.
I have ubunto desktop 10.04 LTS I installed samba and able to access the share on windows machines. However i want to access the share on 300 windows machine(for example) systems at a time Is it possible.
I am using samba t share my files.I am sharing /media/MEDIA folder. it is a ntfs partition mounted with ntfs-3g with write/read access from linux.I can see and browse my shares and also create files in the root of this partition, ie /media/MEDIA, but in its subfolders i do not have write permissions.
another interesting thing is that i have permission to create directory and delete files everywhere and in any folder, subfolder but when trying to create files i get not enough free disk space error.by the way i dont know if this config file is correct, i find as template in internet.
I'm running Ubuntu 9.1 server on an PII Compaq. Read an article "Samba: How to share files for your LAN without user/password" [URL] and some others and can see and pull up files, can't change or delete. Here is my smb.conf:
# 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
# Some options that are often worth tuning have been included as # commented-out examples in this file. # - When such options are commented with ";", the proposed setting # differs from the default Samba behaviour # - When commented with "#", the proposed setting is the default # behaviour of Samba but the option is considered important # enough to be mentioned here .....
I have set up a Samba share via my CentOS 5 server (the samba share is actually a mounted filesystem, not local machine space). I have been successful in adding permissions for my windows users within the smb.conf, but have an additional need that I cannot figure out. I would like for my Windows administrators to be able to create folders and assign permissions from their machines (and their Windows GUI). Ultimately I need the folders on the Samba share to behave correctly when Windows group permissions are applied by these administrators.
When the folders are created, the "Everyone" identity cannot be deleted and sometimes "Creator Owner" or "Creater Group" show up. I have seen several threads start down this path, but haven't seen a definite answer (I may have just missed it!).
I have Linux installed on one machine with samba running and a second machine running XP. They are going through my router and I am using the same username/passwords for both machines and I have even gone to the point of allowing access to everyone for the share I created and the worgroup in samba is MSHOME just like my XP machine. When I view (or search) my workgroup computers my Linux machine shows up and so do the shares I created but when I try to open them I just get a message that permission is denied and I may not have permission to use this resource. I even tried setting access to the shared folder to 777 but still I can't open this share. Has anyone got any idea of why this is?
I've began to work on getting my access control, set up properly on my server, and want to create a "my documents" folder for each user I add. I do not want it being part of the home directory and have read everything and still can't seem to get it to work. I've got a second drive that is mounted at /private on my server, with a folder that is underlying on it call users and groups. Then from there is has the exact unix username that I set up in Users and Groups. Ex. /private/user/gary . With Samba, I added the following code:
[My Documents] guest ok = no comment = %u's Documents
I've tried using %u,%U,%S, and the normal username and of all of them, it will only work with the username. I've even used force user. added root to the valid users list and it still gives me access denied or the multiple connections to a single share with multiple user names prohibited but nothing is mounted on this share. On Webmin, it doesn't show any connections to the share. I'm rather at a stumped state in which is frustrating me, because I want to have this so when I go from my desktop to my laptop I have "My Documents" On either unit. Security on the server is set to User because I've searched to see if I can't find a way to make shares visible by a guest but read only to them and when I access them from my log in to make it read write using the "Share" option.
I have installed ubuntu 10.10 and the Samba addon to configure my shares to my Windows terminals.This is what I got
Firewall off (utf disabled)
Internal Sata /dev/sda1 (EXT4 FS)
External USB HDD /dev/sdb1 mounted at /media/SG1500GB (EXT4 FS)
I have two shares
1. //home/test - Which I can see and access with no problems (can't write to it though even though I set the share as writable?, but, I can read from it). This is available to everyone. My windows terminal can see this folder and access it. This is on my main 80GB internal drive /dev/sda1.
2. //media/SG1500GB/Music. I set this up for everyone full access and I can see it at all my Windows machines but,I can't get into the folder. Windows keeps giving me an error stating network path not found.I also try to access it via the Nautilus (Places/Network/system/music) and get an error message "unable to mount location, Failed to mount windows share". This drive is mounted per the disk utility.
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.
# Samba config file created using SWAT # from UNKNOWN (>) # Date: 2009/06/12 14:15:15
I'm currently using ubuntu on my laptop, and I want to access my windows 7 folders via network and file sharing...but there's this problem...
Everytime I want to connect to my Windows 7 pc, it will just prompt me a "password required for xx pc"...and keep looping on every username/password [afaik from the windows account], and I'm unable to login to it.
Even tho I've set "LmCompatibilityLevel" dword key, 1 or 2 [restarted every set] under LSA..it's still the same thing happens...
Unable to access linux(ubuntu 10.10) share drive on my windows PCIn my office we have few linux (obuntu 10.10) computers and 3 computers running on windows. We have data stored on one of the shared drives of a linux(ubuntu 10.10) system which has samba installed and we are able to access that folder from other linux systems and 1 windows xp system where it asks for user name and password and is able to access the data while in other 2 windows systems (with 1 having xp and 1 having windows 7) we are unable to access the folder because it does not ask for user name and password and it shows an error network drive not accessible as you may not have the permission.
I wanted to setup a Samba share on a box running Ubuntu 10.4 and share it to Windows 7 computers throughout my house. When I browse the Network (thru Windows), I can see "Media Devices" that correspond with the locations of where I will put the media. The problem is that I have been unable to copy the media to the Ubuntu server because I cannot see the Ubuntu "computer" from Windows 'Network'.
All computers are on the same Workgroup
Running the following command line from Windows returns no errors and lists the samba share:
Using the testparm command on my smb.conf returns only one error (which previous googling seems to indicate is not an issue). The following is what was returned by the command:
Client OS :- Windows XP Server OS :- Centos 5.4 Service :- samba or smb
Actually i want to take a back of windows xp's users data which on d: or etc and that backup i want to store in samba share which i made on my centos 5.4 . To do this we need to mount samba share as local drive then any script or any software can detect that share easily in that drive.
I don't think it has anything to do with the config file.More to do with SElinux. I need to know how to configure SElinux so I can see my samba share when SELinuxis on. When I setenforce 0 I can seen all the files and folders set it to setenforce 1 cannot see anything.Here is the output when I ran [root@fileserver /]# getsebool -a | grep smballow_smbd_anon_write --> onsmbd_disable_trans --> onThese two options were off I tried turning them on.This is another one of the commands I tried running. I did change a few options but I am not sure which I do need to change. I am running a stand alone server so I don't need the DC option.
[root@fileserver /]# getsebool -a | grep samba samba_domain_controller --> off samba_enable_home_dirs --> off
When I try to connect to the share from my XP machine, I get a "network path cannot be found" error message.
Below is the entry in /var/log/samba/samba.log
[2008/11/19 11:57:51, 0] smbd/service.c:make_connection_snum(1003) '/server2/test' does not exist or permission denied when connecting to [server2] Error was Permission denied
Here is my smb.conf file:
[global] # Server name server string = Intranet Server (Primary)
# These are the default password settings. ; encrypt passwords = yes ; smb passwd file = /etc/samba/smbpasswd
# Define NT domain/workgroup name. workgroup = intranet
# Security mode. (See SAMBA documentation for details.) ; security = user
# Restrict conections to specific IP addresses. hosts allow = all
# The %m variable sets a separate log file for each # connecting machine. # log file = /var/log/samba-log.%m # Keep it basic - one file! log file = /var/log/samba/samba.log
# The number of minutes inactivity before a connection is # disconnected. (This disconnection should be transparent to most # clients, which an have auto-reconnect feature. Removing inactive # connections is to preserve the server's resources.) deadtime = 10
# These socket options are suggested in the default smb.conf file. # Who am I to disagree? socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# Define both Ethernet interfaces. (Otherwise, I suspect only one # will be configured??) interfaces = eth0 eth1 username map = /etc/samba/smbusers ; guest ok = no ; guest account = nobody