LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-29-2016, 07:20 AM   #1
comcastuser
Member
 
Registered: May 2004
Posts: 185

Rep: Reputation: 22
[Centos7] Samba update screws up my system? Can no longer share the root directory.


Samba used to allow me to share the root (/) directory of a given machine so I could alter (and share across the network) system configuration and /usr/share etc. files (Audacious skins, for instance) remotely without having to ssh in and do annoying extra steps.

Then, suddenly after a yum update, I can see the / directory when I connect to the host machine's share, but I cannot see anything below that, like /usr, etc (much less usr share): I get permission denied.

In investigating I changed my share from / to /home/username and when I created a directory there via the remote machine it was set to owner 'root' as it should be. So my remote machine is accessing the system as root, but even so it is being locked out of root's subdirectories... even though it is viewing the system with the id of root.

When I set up an entirely brand new computer, the problem persisted as soon as I did 'yum update'. Its smb.conf file, which used to work flawlessly for me, is this: http://pastebin.com/fRvTnfpP

This exact issue also now happens when I set up NFS. I suspect this was a 'nanny' change by the authors who felt that we admins, even at home, cannot be trusted to know how to manage our systems.

This is all on a home network. 'Remote machine' refers to a peer on the same LAN. If anyone actually got into this network they would be inside my house and probably stealing my PCs - ergo, "good game". I don't need to be nanny'd by Samba security. Is there a way to circumvent this?
 
Old 03-29-2016, 07:49 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Not there watching over your shoulder, but I suspect it is not Samba or NFS restriction. The culprit is probably the application you are using to browse directories. Can you access shared / using CLI?
 
Old 03-29-2016, 12:59 PM   #3
comcastuser
Member
 
Registered: May 2004
Posts: 185

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by Emerson View Post
Not there watching over your shoulder, but I suspect it is not Samba or NFS restriction. The culprit is probably the application you are using to browse directories. Can you access shared / using CLI?
I discovered the problem via CLI. I can access / but I cannot access anything below that. This problem only came up right after the update. And I can reproduce this on a fresh install of C7. Freshly installed, not a problem, as soon as the update happens, the problem comes up. Nothing shows up in the host's dmesg or anything.
 
Old 03-29-2016, 01:26 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Well, must be a RH thing then. I personally use SSH exclusively for remote configuration, but I do some compilation in chroot which requires sharing / over NFS, works in Gentoo and I'm sure it will stay this way.
 
Old 03-29-2016, 01:30 PM   #5
comcastuser
Member
 
Registered: May 2004
Posts: 185

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by Emerson View Post
Well, must be a RH thing then. I personally use SSH exclusively for remote configuration, but I do some compilation in chroot which requires sharing / over NFS, works in Gentoo and I'm sure it will stay this way.
I bet even RH wouldn't know what went wrong. All I know is, given my smb.conf and a C7 install so fresh it's still got the new BMW smell to it, it ain't me that went wrong.
 
Old 03-29-2016, 02:51 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
If you can figure out what update did it then you can check out the RH changelog for this package.
 
Old 03-29-2016, 02:52 PM   #7
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
My guess is selinux is/was blocking your share.
 
Old 03-29-2016, 06:34 PM   #8
comcastuser
Member
 
Registered: May 2004
Posts: 185

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by Doug G View Post
My guess is selinux is/was blocking your share.
Selinux is permissive now. Same issue persists. Is there another Selinux setting I should look at?
 
Old 03-29-2016, 10:43 PM   #9
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
Have you verified your windows user account is properly set in smbpasswd? Did permissions on / change on your system?

And if you don't have to worry about security on your network you could add "force user = root" to your / share definition.
 
Old 03-30-2016, 01:36 AM   #10
comcastuser
Member
 
Registered: May 2004
Posts: 185

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by Doug G View Post
Have you verified your windows user account is properly set in smbpasswd? Did permissions on / change on your system?

And if you don't have to worry about security on your network you could add "force user = root" to your / share definition.
I never had any Windows system on this network at all when I first set this up. It worked fine until the update. Permissions on / never changed. As I said the only variable in all of this is the changes from the yum update, no settings ever changed. "Force user = root" was always in my / share definition - see the pastebin link in the OP, that's my smb.conf.
 
Old 04-10-2016, 04:57 AM   #11
comcastuser
Member
 
Registered: May 2004
Posts: 185

Original Poster
Rep: Reputation: 22
I don't have any windows systems on this network, my Selinux has always been permissive, the problem shows up in NFS and Samba, via CLI... is there anything I can do here?
 
Old 04-10-2016, 08:36 PM   #12
comcastuser
Member
 
Registered: May 2004
Posts: 185

Original Poster
Rep: Reputation: 22
I know someone else besides me has had to have run into this. It happened as soon as I updated a brand new install with no changes except my smb.conf...
 
Old 04-12-2016, 04:37 AM   #13
comcastuser
Member
 
Registered: May 2004
Posts: 185

Original Poster
Rep: Reputation: 22
Please, can someone help me here?
 
Old 07-15-2016, 10:27 AM   #14
comcastuser
Member
 
Registered: May 2004
Posts: 185

Original Poster
Rep: Reputation: 22
Update: the latest patch of Samba magically fixed the problem with no further work on my part. For anyone else who was stricken with this, it really was official patch updates that broke Samba, not anything you did.
 
Old 07-17-2016, 06:51 PM   #15
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
Thanks for posting your solution.
 
  


Reply


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
Server 2000 can no longer see Samba Share. NEWMG Linux - Newbie 5 06-16-2010 10:44 AM
some one delete the directory from samba share mianmajidali Linux - Server 1 04-11-2009 08:47 AM
I can't write on share samba directory maal Linux - Software 10 12-18-2006 08:57 AM
Samba share - network name no longer available when browsing samba from win2k dorango Linux - Software 0 03-02-2004 02:02 PM
samba share directory SchwipSchwap Linux - Newbie 1 05-18-2003 08:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:14 PM.

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