Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-15-2011, 04:56 PM   #1
Registered: Jul 2010
Posts: 64

Rep: Reputation: 1
Smile "Shared via CIFS samba" directories only work

I recently took over for a sys admin that quit whose samba share works but any new shares I add won't allow me access via windows once I click on the folder. The new samba shares are wide open but not one can access them, just view the top layer directory. The only directory persons can access is the orginal samba share, which if I look at the folder permissions at the bottom it reads "Shared via CIFS samba". I presume I need to make the other shares the same way, can anyone tell me a simply way to make the other directories a "Shared via CIFS samba"? I'm not a linux expert so the more simple the better. Note: RHEL 5 A million thanks Johnny Mac
Old 11-15-2011, 07:20 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Well, they are all "Shared via CIFS Samba" (that's what Samba is, a CIFS/SMB server), so that isn't a whole lot of help.

How are you adding shares to the server? Via smb.conf? Are all the configuration options the same between the new shares and the originals? It sounds like you are looking at a permissions problem; perhaps the permissions you are creating the directories with on the local machine don't match what Samba expects. I would compare local ownership and permissions of the known good share with the new one.

Also check out the Samba error log on the server, that usually gives some information about why operations have failed.
Old 11-16-2011, 07:36 AM   #3
Registered: Jul 2010
Posts: 64

Original Poster
Rep: Reputation: 1
Smile Better understanding of CIFS

Lastnight I read what exactly is CIFS. With some hesitation this morning, I entered on my Linux Command line mount -t cifs //IP address of the Linux system I was on/directory /mnt/ -o user=root and entered my password when prompted. The return was Mount error 13 = Permission Denied. Refer to mount.cfis manpage. As I understand it to be CIFS file systems allow for me to share my Linux folders to Windows Clients in addition to setting up the Samba Share using the Samba GUI Manager. Do I have it backwards and CIFS is for Windows Clients to share there data with Linux Systems. If CIFS is for Linux Files to share there files with windows, how do I setup or format the folder for CIFS?
Old 11-16-2011, 07:10 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,570

Rep: Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427Reputation: 2427
In very general terms, CIFS is the protocol (originally from MS) used to share MS filesystems across a LAN.
A bunch of FOSS people reverse-engineered it and called the resulting toolset Samba. This toolset also includes some Active Directory/Domain Ctrl tools as well.
Generally we use Linux as the server and MS as the client.
You should bookmark & read some of the docs here
1 members found this post helpful.
Old 11-18-2011, 09:22 AM   #5
Registered: Jul 2010
Posts: 64

Original Poster
Rep: Reputation: 1
Smile Got ti working, whew!

First CIFS is a protocol that utlizes samba. Ensure usernames, passwords and windows (Windows and Samba) permissions all match up. On the Linux Box type the below:

mount -t cifs -o username=testuser,gid=501,file_mode=0775,dir_mode=0775,forceuid,forcegid // /mnt

Above I'm saying mount the windows drive Data in the linux volume /mnt. Authenticate with the linux testuser account, assign group and owner permissions of the directory and all files of 7 and all others of 5. Force the uid and gid for those permissions which maybe previously applied.


Book: Unix and Linux System Administration Handbook Fourth Edition


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 44 02-26-2016 01:45 PM
Samba shared folder "doesn't exist" under Fedora 7 x86_64 rcx11 Linux - Server 5 10-30-2007 07:22 AM
Problem mounting a samba share "CIFS VFS: Send error in SETFSUnixInfo = -5" mrcoffee11 Linux - Software 1 11-07-2006 06:29 PM
"Access Denied" to printer and directories shared via Samba Aarstar Linux - Networking 1 03-05-2002 07:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration