Server :: Method To Share CentOS, Ubuntu, Mac, PC?
Feb 22, 2010Is Setting up NFS the best method for mounting share drives between Mac and Linux?
View 6 RepliesIs Setting up NFS the best method for mounting share drives between Mac and Linux?
View 6 RepliesWe have a production web site running apache 2.2.3 across several web servers. we also have a major problem with SPAM comments right now. our method of identifying valid IPs (whether by external clients/customers, or internal personnel) vs SPAM'ers is not ideal - its prone to erroneously labeling legit IP's as targets to be blacklisted.
What we need is.. a way to see how much distinct request traffic is coming from any given IP address to the site in real time (or very near realtime). Essentially we want to see in some graphic/chart way requests per sec to apache / per ip sorted by requests per sec.Would nTop do this? I've only used this in a limited form at a branch office, not on a production web server.
I use Samba, NFS, RSync and FTP/TFTP in my multi-location setup.
Is there a CentOS standard place to put my sharable file space? I've seen /usr/local/, /var, /var/samba, /user and /share. I have gotten to the point of preferring /share, but I want my servers to adhere to standards in case I am not available. Another alternative is to create a user name that matches the group name and using that user's home directory for the shared file space. This would solve the issue of shared departmental mailboxes and backups, not to mention (though apparently, I'm going to) SELinux configuration... Maybe I've just answered my own question...
What are other people's opinions?
I'd like to share /usr/share/docs out to my local subnet via httpd so I can read server documentation from my workstation. I've simply done a generic install of httpd and httpd-manual and added this to the bottom of my httpd.conf file:
alias /docs /usr/share/doc
<Directory /usr/share/doc>
Order deny,allow
[code]....
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
[Code]....
I'm having some trouble mounting an NFS share on a VM host (both CentOS 5.5):
-------------------------
SAN/NAS BOX (NFS Server):
-------------------------
/ filesystem on VolGroup00/LogVol00 = 7.6GB A 20GB filesystem on vg_vm/lv_vm1 is mounted at /srv/vm1 A 100GB filesystem on vg_vm/lv_data1 is mounted at /srv/data1
Output of 'df -h' (extraneous stuff removed):
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
7.6G 1.8G 5.5G 25% /
/dev/mapper/vg_vm-lv_vm1
20G 173M 19G 1% /srv/vm1
/dev/mapper/vg_vm-lv_data1
99G 188M 94G 1% /srv/data1
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
[code]....
when client goes to bind to NFS share on remote server - they are getting access denied when using the mount command; [SERVER] - CentOS 5.3 /etc/exports /mnt/data 192.168.5.199(rw) - implying the client I want to have access
[Code]...
I have OpenVPN running successfully on a CentOS Linux server. All remote clients connect without a problem and can ping the server LAN (10.5.0.0/24) . The server address is
10.5.0.1. All network shares on the server are available to the remote clients via SAMBA shares and this works well.The problem is that I am unable to get the remote clients to access services on the LAN clients. For example, there is a webserver running on a Windows XP PC (on the server LAN @ 10.5.0.2) with no firewall enabled. The remote VPN clients can ping this webserver at 10.5.0.2, but cannot browse the webserver at [URL]. All clients on the server LAN can however browse the webserver. The remote clients are using Windows XP and VISTA with OpenVPN 2.1.1.
I am new to VPNs and networking, but from my research, it seems as if this may be a routing issue. I would appreciate any help you may give in getting the remote clients to access the services on the LAN clients (other than the server @ 10.5.0.1).
The server configuration is:
local 192.168.10.6
port 1194
proto tcp
[code]...
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 RelatedI 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
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
***firewall
-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 mode/booleans
# sestatus
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
***filesystem
# semanage fcontext -a -t samba_share_t �/share/photos(/.*)?�
# restorecon -R -v /share/photos
***Disks
]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 9920624 2070872 7337684 23% /
/dev/sda1 101086 19146 76721 20% /boot
tmpfs 1846656 0 1846656 0% /dev/shm
/dev/mapper/VolGroup00-xen
100791728 202540 95469188 1% /xen
/dev/mapper/VolGroup00-photo00
251981556 191716 238989840 1% /share/photos
/dev/mapper/VolGroup00-dmsdoc00
100791728 192256 95479472 1% /share/alfresco
none 1846656 104 1846552 1% /var/lib/xenstored
***smb.conf
[global]
workgroup = workgroup
netbios name = server
security = user
name resolve order = wins hosts lmhosts bcast
encrypt passwords = yes
hosts allow = 192.168.0.
hosts deny = 192.168.122.
interfaces = eth0
passdb backend = tdbsam
oslevel = 222
local master = yes
domain master = yes
preferred master = yes
cups options = raw
username map = /etc/samba/smbusers
wins support = yes
log level = 4
guest ok = yes
[photo]
comment = Photos
path = /share/photos
read only = yes
guest ok = yes
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'm trying to set up quota limit in samba-3.0.33-3.15.el5_4.1 in CentOS 5.5, by means of the module vfs objects. In the samba howto [1] I found a very brief explanation, but it isn't working for me. The basic idea is to setup a user called 'quota2g' (uid 499) and setup the [homes] share, as it comes by default, to enforce the quota on each user share.quota2g:x:499:499:User quota 2GB:/home/quota2g:/bin/bash
View 1 Replies View RelatedFor use on a test LAN, ie. security is not an issue, I need to install the most basic FTP server available just so we can share files back and forth between test hosts : launch FTPd, have it share a directory through either "anonymous" or a single, shared login/password?
View 8 Replies View RelatedWhen running
Pear upgrade
The following error is raised:
A much older version of the program compiled against GTK 1.2 works on CentOS 5.3
A current version of the program, compiled against GTK2, works in Slackware 12.1, 12.2 and 12.3. But I have a failure (see below) in CentOS 5.3.
The GTK library for each dist is
libgtk-x11-2.0.so.0.800.20 for Slackware 12.1
libgtk-x11-2.0.so.0.1200.9 for Slackware 12.2 and 12.3
and
libgtk-x11-2.0.so.0.1000.4 under CentOS 5.3
I have had the software working on different versions of GTK as well but no longer that that version information available.
(Below) -- I believe I've narrowed it down to the function gtk_entry_set_text in some (but certainly not all) instances.
I could provide details, but I doubt they really matter. My best guess is that libgtk-x11-2.0.so.0.1000.4 is broken. So, I'd like to replace it without learning how to compile gtk from scratch or causing problems with the rest of CentOS.
I'm looking to find out exactly how to go about changing the encryption method of shadow passwords from MD5 to something a bit stronger, like SHA. I've been looking around for a bit now and haven't found out how to do it. I've gathered that I'll most likely need to change the /etc/pam.d/system-auth file. Right now, there is a line that looks like this:
password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok.I'm guessing the md5 should be changed to something else, like sha256. What else? I know I'll need to reset all passwords once the change is made, but I thought there was someplace else that controls how the passwd command encrypts passwords.
this has happened in different distros, so far i have tried slack, arch, and mint at work i have an xp box with a shared folder i created. on my linux box i setup fstab as follows
Code:
//winxp/temp$ /home/user/temp cifs rw,uid=1000,gid=1000,credentials=/home/user/.creds 0 0
this gets mounted correctly and i can read/write the shared folder at home i have a win7 box that i create a share on and use the exact same code in fstab, but it wont mount the share. i get something like permission denied or access denied is there a difference in how winxp and win7 share folders? my usernames on the linux boxes match those of my windows boxes at each location. i have given my win accounts full access and control over the win shares.
What is the best method for backing up a VPS server? (A guest instance). I'm assuming you can't copy the image file while the VM is active. And if you stop the VM you have downtime.
View 3 Replies View RelatedWhen I try this yum install kvm qemu libvirt python-virtinst qemu-kvm I become this error
Transaction Check Error: file /usr/share/man/man1/qemu-img.1.gz from install of qemu-img-0.10.5-1.el5.2.x86_64 conflicts with file from package kvm-qemu-img-83-164.el5_5.25.x86_64
how can I resolve this error
I cant update php in my RHEL Server 5.1 using yum. I am using RHEL Server 5.1 and I cant use yum to upgrade my php. Other site told me that use wget to solve this problem. How to use wget to upgrade php? This is my first time to handle linux server..
View 9 Replies View Related1>what method is used?
2>does it required separate machine for that?
3>will the backup server never crashed?
I'm trying to create a CentOS based liveCD that mounts a NFS share and executes one script there. The NFS never mounts altough while logged I can mount it with the very same command that I use in the KS.
In the %post I have :
%post --log=/tmp/post.log --erroronfail
mkdir /mnt/nfs
mount -o nolock 10.23.1.1:/csc/RemoteHome /mnt/nfs
I added the --log in order to debug, but nothing is written in /tmp/post.log. I tried redirection on the mount command with >> /tmp/debug.log but this is not written. Maybe during the post sequence /tmp is RO ? Anyway, I tried with ifup lo, service portmap start in the %post, but doesnt change (I even have a service : command not found in the live cd creator output).
Here is the remainder of the KS :
lang en_US.UTF-8
keyboard us
timezone US/Eastern
[Code]...
I m new study Linux so Would you like guide me how to config CENTOS to share DATA .Anyway , pls if possible pls help me build FILE SERVER, ISA by CENTOS
View 3 Replies View RelatedWhat is the best method for debugging the booting process? Is there a cheatcode (tried debug and failsafe). Slackware 13.1 with standard linux kernel 2.6.35.8. I having a problem with a dell server 2860 booting my build. It is hanging on
[Code]....
Booting my previous kernel 2.6.27.27(different disk with different initrd.gz) it loads the same as above but continues with
Code: loading iSCSI transport class v2.0-870 iscsi registered transport tcp I'm stumped it the problem is with the ata_piix module or the iSCSI transport module or some firmware I might be missing. I booted other pcs without issue.
I have a LAN of about 70 computers that I would like to share media files between. I have gotten to the point with Samba that I can view the files without a username/password from client PC's. I would like to make all the folders read only except for one which will be writable for everyone. The thing that I am having a hard time with is allowing a couple of administrators (on Windows 7 machines) read/write access for all files/folders. I am completely new to Ubuntu and Samba so please make explanations thorough. Here is /etc/samba/smb.conf file:
[Code]...
Have an NFS Server running on RHEL 5.4 with the following setup/export/home is mounted from a SAN and shared out (no problems there)In oneome directory I have recently mounted another partition (e.g. /export/home/user/foo) This directory is also shared via NFS.When logging into an NFS Client you can access /home/user as expected. If you CD into foo there are no errors, you can even read/write files there.On the NFS Server those files can only be seen by umounting /export/home/user/foo.The idea is for 'footo contain files are churned at a very high rate and that this partition will not be replicated offsite
View 2 Replies View Relatedi have purchased sun server for my visualization project. Request you to help me finding the io for disk .I have put storage(disks) on different location (File Server) and on server (Application) i have configured 4 virtual machines.
How would i monitor the io for file server from the Application server where i have configured 4 virtual machine. one way to mount the file server share on application server and execute
dd if=/dev/zero of=/share/test.out bs=1024 count=1024 to check the read and write Is there any other way of doing this.
I am running a NFS share on a Debian Lenny server with to network interface.
Sometimes when booting the server the following messages i shown in syslog:
Code:
If the system is rebooted then NFS is functional again. I would like to know way this happens somtimes so i can repair it, anyone with an idea? Another thing is that i would like to bind the NFS service to a specific interface e.g eth1 is this possible?
I have CentOS 5.4 and have installed CPAN GD module.Installation messages seemed clean and successful.When I try to create a png file, perl gives the error message :
Can't locate object method "png" via package "GD::Image" at
/usr/lib/perl5/vendor_perl/5.8.8/DBD/Chart/Plot.pm line 1276 (#1)
(F) You called a method correctly, and it correctly indicated a package
functioning as a class, but that package doesn't define that particular
method, nor does any of its base classes. See perlobj.
Also, the following perl one-liner gives answer "No".
perl -e 'use GD; $im=GD::Image->new(); print $im->can("png") ? "Yes" : "No" , "
";'
I suspect that this GD module requires Image::Magick, but that borks on installation.
Magick.xs:2344: warning: implicit declaration of function �MagickCoreGenesis�
make: *** [Magick.o] Error 1
JCRISTY/PerlMagick-6.59.tar.gz
[code]...