CentOS 5 :: Samba CIFS - Mounting Directory On Share

Jul 22, 2009

I've to make a Windows 2000 share on my Server Linux CentOS 5.1 with all the updates installed with yum. I've a directory on a Windows 2000 that contains some images for a catalogue. I have my internet site on CentOS 5.1 with a Apache - Mysql - PHP web server. I have to mount my directory on a share in /mnt/catalogueimages and made a symbolic link from my /var/www/html/mysite/catimages to this samba share.

This is what I do following your guide a this link: [URL]
I have placed in my /etc/fstab this line:
//SERVER/C/Catalogue /mnt/catalogueimages cifs user,username=Administrator,password=,uid=apache,gid=apache 0 0
My Windows 2000 server have no password.

After that I made the symbolic link:
ln -s /mnt/catalogueimages /var/www/html/mysite/catimages
All it's OK.

The problem is that I can't see the images via browser. I have tried also to put some images in the directory /mnt/catalogueimages, deleting the mount point, in order to see if the problem was in apache: the images are visible via browser. Why I don't reach to see the images mounted with samba?

View 9 Replies


ADVERTISEMENT

Fedora Networking :: Mounting Windows Share With Cifs?

Feb 10, 2009

Following instructions that I received from the Fedora 10 Guide, I recently edited my etc/fstab file so that I could auto mount my Windows share. It worked the first time, but when I rebooted, I noticed an error saying that Linux could not not unmount the cifs shares. Eventually it did reboot, but now I cannot mount the share at all from fstab. When I run the command #mount -a and then #mount, my share is shown to be mounted although I cannot access it and there is no link to it on the desktop like there was the first time it mounted. I basically want my Windows share to be permanently mounted with read/write permissions. My Distro is Fedora Core 10 64 bit. How can I resolve this issue?

View 3 Replies View Related

OpenSUSE Network :: Mount Error 12 When Mounting A CIFS Share?

Jan 26, 2010

We recently moved to a new home and I am trying to get my home file/print server set up again. Thanks to swerdna's excellent website, I got my server box (just upgraded from 11.0 to 11.2) running Samba and serving my shares over the network, and my "client" machines can access them without a problem.However, I'm not having much luck setting up CIFS mounts on my Linux desktop. I have my all-purpose user added to the Samba auth list (via smbpasswd), and configured my client as swerdna's howto's specify, and I can access the files just find. However, when I try to mount the shares with this command:

Code:
mount -t cifs -o username=klein,password=klein //192.168.1.70/sharedmedia /home/zak/SharedMedia/
I get the following error:

[code].....

View 2 Replies View Related

Ubuntu :: When Mounting CIFS Share, App Files Are Owned By Root?

Jul 26, 2011

I'm trying to mount some CIFS shares (NetApp) to my Ubuntu 11.04 desktop (64-bit).I am mounting it as a domain user with admin rights and full control over the share.ter mounting it as root, all the files are owned by root and I can't modify them from my non-root user.Here is how I am mounting the share:

mount -t cifs -o domain=example,username=example-user,password=mypassword //myfiler.example.com/myshare$/mydir /mnt/myshare/

This share is a qtree under a volume with security type set to NTFS. (Although I have also tried security type = Mixed) We don't configure user-level access to shares on the filer, we create directories and lay down permissions on those from the Windows side. (Although I have tried explicitly adding my domain user to the access list for the share)

View 5 Replies View Related

Server :: Mounting CIFS Share Causes The Mount Point To Be Destroyed?

Jun 18, 2009

I've been trying for a while mounting a EMC NAS share on linux. As far as I know the NAS share behaves just like a regular windows share, so the mount process should be very similar. On the NAS server, the disc "Disc1" is shared, and I need to mount a sub-subfolder of that share. This is my line in /etc/fstab:

Code:

//windows_box/Disc1$/folder1/subfolder /var/tmp/mount_test cifs defaults,acl,soft,uid=srvadm,gid=adm,umask=0027,file_mode=0600,dir_mode=0700,credentials=/root/cred.txt,sec=ntlmv2 0 0

When mounting the share, this is what happens:

Code:

[root@server1 tmp]# ll
total 8
drwxr-xr-x 2 root root 4096 Jun 18 10:39 mount_test

[code]....

In the console (i.e. bash), the "mount_test" word on the last line has a red background. When I issue "umount mount_test", everything is back to normal.

View 13 Replies View Related

OpenSUSE Network :: User Parameters Don't Work Mounting CIFS Share?

Nov 18, 2010

I need to mount a windows share on my OpenSUSE 11.3. I get it using the mount.cifs command (by itself or using cifstab), but only root can rw file. I try the uid/gid parameters (also using forceuid) and the file_mode/dir_mode parameters, but I get the same behavior: all files and directory with rwxr-xr-x permissions and root/root (user/group). I read the whole section FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS in man mount.cifs but nothing works.

View 9 Replies View Related

OpenSUSE Network :: Error When Mounting Remote Cifs/samba Compact Flash?

Jan 3, 2010

Am in the process of upgrading from an ancient OpenSuSE release (7.2) to 11.2. One thing I have been unable to do that worked fine under 7.2 is remotely mounting a compact flash drive from an XP machine. Worked fine for many moons on 7.2:

# mount -t cifs -o rw //xpbox/'cf (H)' /cf0
I get:
mount error(12): Cannot allocate memory
Other cifs mounts of hard disks work fine.

I found a posting that says this means the memory allocation error is from the XP side. It says to fiddle with the XP registry, specifically IRPStackSize. I was not confident this fix would work since there should not be anything significantly more consuming with 11.2 compared to 7.2, and indeed, I got the same error after changing the parameter to 18 and rebooting the XP machine. Any ideas? I have some suspicion that the space and parenthesis in the share name might be fouling up someone. XP forces the share name to this for some reason.

View 1 Replies View Related

OpenSUSE Network :: Mounting A Cifs Share As Normal User In OpenSuse 11.4?

Apr 2, 2011

Q: How can I allow my users to mount a cifs share without an entry in fstab in OpenSuse 11.4?

I have an answer myself. Until OpenSuse 11.2 I could mount my samba shares by making mount.cifs and umount.cifs setuid root. Today I installed OpenSuse 11.4. Unfortunately mount.cifs isn't anymore allowed to be setuid due to security concerns. Security is not an issue in my case, so I copied the mount.cifs and umount.cifs from 11.2 to make it work again:

1. Download cifs-mount-3.4.2-1.1.3.1.x86_64.rpm from this repository (I use 64 bit):
"http://download.opensuse.org/distribution/11.2/repo/oss/suse/x86_64/"
2. Extract the files mount.cifs and umount.cifs from the rpm and copy them to /sbin
3. Make them setuid root:

Code:
linux-y5qw:~ # chmod u+s /sbin/mount.cifs
linux-y5qw:~ # chmod u+s /sbin/umount.cifs
4. Mount your cifs shares as a normal user:

Code:
martin@linux-y5qw:~> /sbin/mount.cifs //192.168.2.2/data /home/martin/data/ -ousername=martin
Password:

View 1 Replies View Related

Networking :: Mounting A Samba Share Fails ?

Mar 20, 2011

I have a security camera (Mobotix M12) which can save video to a Samba share, but it's unable to mount the share. So from another system I am trying to mount that share and it's failing.

The problem is not firewall, as no problem messages, and the Samba log is vacant.

When using this command, and I give the password:

In dmesg on the client I get:

And on the server I get nothing in dmesg or samba logs. And no logfile is created for the client machine in /var/log/samba. I can ssh over to driveway on the server just fine.

I used to use Samba, although it's been a long time, since I discovered sshfs.

View 2 Replies View Related

Server :: Samba Share Mounting Permission ?

Feb 2, 2010

I have created a samba share and mounted the share with /etc/fstab on another machine. This share is supposed to be a fully public share i.e. i have different share where different permissions are set but on this particular share i intend to have full read write and execute rights to all the users on my mounting machine.

The problem is that I get only owner and group rights for write on directories that i create due to which all my users can create files in my mount directory but when they create a folder they cannot create any file inside that folder.

View 4 Replies View Related

Ubuntu :: Samba Share Mounting - From 'mount' To Fstab

Mar 21, 2010

I have a command line that mounts the disk of my mobile

Code:

It works, but there is a problem with it. Every folder and file has root:root ownership, so I am unable to change anything. Even when I change permissions manually, it does not work.

Now, I want to move this to fstab but have no idea how an fstab line should look like. Obviously, I want to also have rw access to the disk.

View 7 Replies View Related

Ubuntu Networking :: Samba Network Share Mounting ?

Oct 8, 2010

I have 2 Ubuntu machines: a desktop in my bedroom, and a laptop.

I have my music shared on my desktop machine, and can access it through the network menu item in the nautilus manager, but I want the files from the share to be mounted on the disk so I can access it through the commandline.

If I right-click the shared folder in Nautilus, it says its location is smb://rob/music

If I do:

mount -t smbfs //rob/music /mnt/music, it tells me that it cant locate rob.

So I try "ping rob" and that doesn't work.

I can't make a hosts entry for rob which happens at this moment to be 192.168.0.8, because my router assigns different IP addresses to various machines at different times, and I cant seem to find a way to make static maps from MAC address to ip address.

So, how come nautilus can see my samba share on the machine "rob", but the mount commands cannot?

View 7 Replies View Related

Ubuntu Networking :: Samba Share Not Mounting At Boot?

Aug 12, 2011

I have been searching around but could not find an answer that suits my problem.Here is the line I have in my /etc/fstab//192.168.1.188/openshare /mnt/lacie_nas/openshare cifs errors=remount-ro,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0The remote directory is a LACIE NAS.At boot the directory is not mounted but if I execute the command "mount -a" it works perfectly.

View 4 Replies View Related

Networking :: Mounting A Samba Share In Debian Squeeze ?

May 12, 2011

I tried the smbmount command like this

Code:

And then i get an error instead of my shared files

Code:

I assure that the /home/baronobeefdip/share directory exsists and i am using the username and password that exsist on the server's system (the username is baronobeefdip and the password i would like to keep secret)

What am i doing wrong here because something is wrong

And for refernece here is the result from the

Code:

command

Code:

I want to the get one that is commented as the "debian floor computer"

View 13 Replies View Related

Debian Configuration :: Samba Share No Longer Auto-mounting In Wheezy

May 1, 2011

I upgraded my testing/Wheezy Inspiron N5010 to 2.6.38-2-amd64 recently (along with a bunch of other updates, of course) and now my Samba network share is no longer automatically mounting, I have to open a root terminal and do a "mount /mountpoint"; my relevant /etc/fstab entry:

I've tried over options, as well, but it isn't automatically mounting. Any suggestions (including where to file a bug report)?

View 3 Replies View Related

Ubuntu Networking :: Mounting A Samba Share On Two Machines - Can't Place Anything Into The Folder

Apr 24, 2011

I'm having some trouble mounting a Samba share on my two Ubuntu machines. The Samba share is setup so that all files are readable and writable by everyone (it's only accessible via the local network). When I create a new folder on the share with either of my Ubuntu machines, the folder becomes non-writable by anyone ie. I can't place anything into the folder. I'm using the following command to mount the share:

[Code].....

I think the problem is with the way I'm mounting the share on my Ubuntu machines. If I go to the share using smb://192.168.1.160 in a file browser, I can create new folders which are readable and writable by everyone. But, if I create the new folder where it's mounted at /mnt/backup, no-one can modify or change it.

View 2 Replies View Related

Red Hat / Fedora :: Permanent Mounting Of Windows Directory For Using Samba?

Mar 30, 2010

tell me the command to permanent mount a windows directory into linux for using samba.

View 7 Replies View Related

Fedora Servers :: Mounting NFS Share On Newly Created Directory Failed

Mar 12, 2010

Running NFS on Fedora 10. Exports fine. I tested it locally. I tested the NFS configuration by trying to access the exported directory from my local machine, before testing it from a remote machine. While logged in as root, I created a new directory "/mnt/nfstest".

Then I mounted the NFS share at the new directory I created:
[root@eric root]# mount -t nfs localhost:/mnt/nfs /mnt/nfstest

When I tried to mount on the remote client:
[root@frank root]# mount -t nfs eric:/mnt/nfs /mnt/nfstest

After a while I got:
# mount eric:/mnt/nfs /mnt/nfstest
mount.nfs: mount system call failed

I tried strace but wasn't sure what I was looking for, but I've attached the results as a .odt file.

View 1 Replies View Related

CentOS 5 Server :: Mount Cifs Does Not Work, But Smbclient Does. Empty Directory In First Case?

Feb 18, 2009

I am trying to mount a samba share using an fstab entry

//srv1/Corporate /winfiles cifs user,uid=0,rw,noauto,suid,credentials=/root/wnmount_credentials.txt 0 0

The mount appears to complete cleanly, however when I browse the directory /winfiles it is always empty.The smbclient command works properly using the same credentials.The /root/credentials file looks something like this

username=********
password=********

View 5 Replies View Related

Server :: Share A Directory With SAMBA And NFS?

Jul 14, 2010

I want to share a same directory so that it can be accessed by both Linux clients & windows clients. how can i do this? i want to share that directory with both NFS & samba services. Is it possible to do this?

View 3 Replies View Related

Ubuntu Networking :: Root Level Parent Directory - Mounting Windows Share?

Mar 26, 2010

I've mucked through and figured out how to mount a windows share. I can access the folders I was looking for, but the windows share was not what I thought it would be. I was looking for the specific shared folder. Instead I got a root level parent directory that included the folder I wanted, and a couple others.

smbclient -L <ipaddress> gives me a parent directory on the root

First question: Can I mount a specific folder within a share?
Second question: Could somebody define share? I thought it was the specific shared folder, but that doesn't seem to be the case.

View 1 Replies View Related

CentOS 5 :: Mounting NFS Share In Net Install?

Sep 5, 2010

I am trying to install the net install version of 5.5 from an NFS share that I setup with freenas. I have fully functioning DNS (hosted on freebsd) and can mount the iso share on another centos box with the command mount [URL] on that machine.

but when I go to do the same thing in the centos net install I get an error stating simply: "that directory cannot be mounted from the server".

in the settings I have the following values:

NFS server name: nas.example.com
CentOS directory: /mnt/iso1
NFS mount options (optional):

View 1 Replies View Related

Ubuntu Networking :: Active Directory Samba Share Permission?

Feb 24, 2011

I'm having a problem with Active Directory and Share permissions that I cant seem to figure out. I used likewise-open to join my ubuntu server to a windows 2008 domain. Everything seems to be working fine. The problem is, the only way I can access the shares is if I CHMOD 777 the share directory. If I CHMOD 770, the Domain owner or Domain group member of the directory cant access the directory. Also, when creating a folder within the share, I need to set the directory mask as 777 in order to enter those sub folders.

Heres the share section from my smb.conf

Code:
[public]
comment = Ubuntu File Server Share
path = /srv/samba/public
browseable = yes

[Code]...

View 1 Replies View Related

CentOS 5 Server :: Mounting A NFS Share On A VM Host?

Sep 2, 2010

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

View 3 Replies View Related

Fedora Servers :: Setup A Samba Network Share With A Directory Server Backend?

Feb 24, 2009

I'm trying to setup a Samba network share with a Fedora Directory Server backend. This will be used primarily for Windows users to authenticate before accessing the share. I am using Fedora Core 10 and have all of the latest updates installed. When I try to connect from a Windows machine, I am prompted for a username and password. I enter the username and password of the account I created in Fedora Directory Server in OU=People. The credentials are rejected. At the same time in the log file I see this:

[2009/02/24 16:50:16, 3] auth/auth_sam.c:check_sam_security(282)
check_sam_security: Couldn't find user 'Administrator' in passdb.
[2009/02/24 16:50:16, 2] auth/auth.c:check_ntlm_password(318)
check_ntlm_password: Authentication for user [Administrator] -> [Administrator] FAILED with error NT_STATUS_NO_SUCH_USER

Administrator is the user I created in Fedora Directory Server. If I perform an ldapsearch it will find the user as uid: Administrator so I know it is able to be looked up in FDS. But I'm guessing that's not the problem.

[Code]...

View 4 Replies View Related

CentOS 5 :: Mounting A Directory From Different Server?

Jun 11, 2009

I am quite new to linux so pleas be understanding :) Here's my problem:

I have a server: A with some directory dirA/ I want to have an access to that directory on server B.

I was reading about "mount" but its very ambiguous for me.

View 4 Replies View Related

CentOS 5 Hardware :: Mounting RAID Array On Samba Server?

Jun 23, 2009

I need to mount my raid array on CentOS 5.2 samba server.

Here are my hardware specs:
Motherboard: Tyan S2510 LE dual PIII
CPU's: Intel PIII 850ghz socket 370
Memory: 4 gig Crucial 133 ECC SDRAM
OS: 2 x'x IBM Travelstar 6.4 gig 2.5 hard drives, (low heat/noise)
Storage: 4 x's Seagate 500 gig IDE 7200 rpm
RAID controller: 3Ware 7500-12 controller, (RAID 5) (66 mhz PCI bus)
NIC: 3COM 3C996B-T gigabit NIC, (66 mhz PCI bus)

I have the 2 IBM's set as RAID 1, (mirror) and the 4 Seagates as RAID 5, (1.5 TB) I have installed the OS with minor problems, (motherboard doesn't like the 2.6.18-128.1.14.el5 kernel, removed it from my grub.conf).

My problem is mounting the RAID array. I have done the following:
formatted with fdisk;
fdisk /dev/sdb
Then formatted with the following command;
mkfs.ext3 -m 0 /dev/sdb

The hard drive was formatted with the ext3 files system, but I have mounted it as an ext2 file system as I don't want 'journaling' to occur. I then edited my /ect/fstab like this: .....

Then: mount -a
When I go into my "home" directory and type ls, I get the following:
[root@hydra home]# ls -l
total 24
drwx------ 2 zog zog 4096 Jun 23 15:50 zog
lrwxrwxrwx 1 root root 6 Jun 23 15:46 home -> /home/
drwxrwxrwx 2 root root 16384 Jun 23 15:34 lost+found
drwxr-xr-x 2 root root 4096 Jun 23 17:18 tmp
Why my home directory is showing under home?

View 5 Replies View Related

CentOS 5 Server :: Can't Access Samba DFS Share

Feb 19, 2010

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]....

View 14 Replies View Related

CentOS 5 Networking :: Can Use Samba Share But Cannot Mount It

May 27, 2010

I am trying to mount a file server directory on a client machine. I tried using NFS, but could not mount the share on the client. Several respobses were given to a post on this problem. but I still was not able mount the NFS share. I decided to try instead to mount the directory as a Samba share because I can already access it using Samba from windows, or from KDE or Gnome using smb://fileserver as a desktop location icon URL. When I try to mount the Samba share I get error messages that nearly identical those that occurred with NFS. . Here are some of the setup parameters

CentOS 5.4 on client and server behind a D-Link router
server IP: 192.168.0.44 (can ping it client)
client IP: 192.168.0.101 (can ping from server)

[code]....

This is the only error message that these commands have produced in the messages log, secure log or smbd log for either machine. My immediate goal is to set up the simplest possible local mount that will allow Grsync to backup to the file server.

View 4 Replies View Related

CentOS 5 :: Map Drive To Samba Share From Windows?

Apr 18, 2011

Below is my samba config. Is there anything that appears obviously wrong?

Why can't I map a drive?

from a windows 7 x64 workstation:

The network path was not found.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved