- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Samba frustration root cant mount regular user get...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 12:22 PM
02-03-2005 12:22 PM
Solutionhttp://www.lula.org/pipermail/lula/2003-May/000077.html
led me to try using mount -t smbfs in place of smbmount, and it magically works.
Hope this helps,
John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 04:08 AM
02-04-2005 04:08 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
smbcontrol smbd debug 2
Then tail the /var/log/samba/log.smbd ( thats what it is on my debian box could be different on your FC2 box ) and reconnect, it should tell you what user name is connecting, also check the auth log to see what pam is saying.
I'm currently digging through samba docs will have more in a bit.
--Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 04:09 AM
02-07-2005 04:09 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
A week from today, I'm flying to Israel. I will have Internet access for most of the trip and will be able to continue running tests and follow up on this issue.
I will try and make some time and run this test and post output the next day or so.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2005 01:49 AM
02-09-2005 01:49 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
https://bugzilla.samba.org/show_bug.cgi?id=2223
"edited" changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
------- Additional Comments From jerry@samba.org 2005-02-09 06:03 -------
Try the cifs fs for the 2.6 kernel.
http://www.samba.org/samba/Linux_CIFS_client.html
or look more into the unix extensions. We do not
maintain the smbfs kernel module. Sorry.
Its not a bug, its a feature.
Looks like they're telling me to mount differently.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2005 05:49 AM
02-09-2005 05:49 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
Always with my old config : RedHat 7.2, Samba 2.2.1. Mounting server on itself with "mount -f smbfs" and "smbmount" results in the same all_is_owned_by_root problem. But maybe my conf is too old. I can not even test the patch you mentionned due to this. I don't have another server here, but I'll try at home if I find time (but old versions too. I don't have time to upgrade, and it works so well).
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2005 07:44 AM
02-09-2005 07:44 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
They want us to use cifs tools. That filesysetm is not built into my kernel.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2005 08:00 PM
02-09-2005 08:00 PM
Re: Samba frustration root cant mount regular user gets wrong permissions
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 12:45 AM
02-10-2005 12:45 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
The tone of the message is that smbfs and smbmount is obsolete and they don't maintain it any more.
Interesting because Red Hat shipped the ES 3 OS with smbfs support and NOT CIFS support.
Though in many posts I've told users on the HP-UX side CIFS=Samba, that seems in practice not to be the case.
CIFS is something Oracle delivers with its suite and is independent.
The question now is how to put CIFS into an OS that does not have it. I imagine I'll need to download and install the software that Jerry links in the Bugzilla report.
Quite a PITA, if you ask me.
Seem to be right though, because windows which uses a CIFS based client and HP-UX which also uses a CIFS based client both mount properly and see correct permissions.
Solution level pointage for a fix.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 01:47 AM
02-10-2005 01:47 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
Personally, I think this whole fiasco is part of a broader problem with inappropriate focus on the part of distros and kernel developers. The emphasis in the 2.6 kernels seems to be kernel reorganization and offering new esoteric features. Meanwhile more important stuff seems to lanquish. I've had to ditch the previous two major FC2/FC3 kernel package releases because of stupid bugs that break critical things (major ACPI screwups and broken parport). I am very much in favor of progress, and we Linux developers HAVE made huge progress in the past. But I think it's time to slow down a little and make sure we know what's really important.
Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 02:13 AM
02-10-2005 02:13 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
One thing is that I can't really compare, as I use samba as a server (mainly) and CIFS as a client (always). Samba is a very good server I even use as a PDC.
Problems I had with CIFS as client, is that it was built on the same stack as NFS. So I had the same problems : A windows server crashed and I was unable to umount the shares. I don't know if this kind of things happen with samba.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 03:24 AM
02-10-2005 03:24 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
Try soft versus hard mount on the cifs/nfs thing.
Yes, I was very displeased when I discovered the hard way cifs was built on the NFS stack.
Right now, I'm using NFS to provide access. I'd rather go pure samba/cifs, because the pitfalls that exist with NFS don't exist.
Well, we've clearly defined the problem. Now, what are we going to do about it? I'm personally going to ignore it for a few weeks while I travel to Israel. I may have some time an attempt a CIFS install on a client box, just for grins to see how it goes.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 10:23 AM
02-16-2005 10:23 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
When you have a user in admin users, Samba will always do file operations for this user as root, even if force user has been set.
(http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessControls.html)
That could be why all the files end up owned as root, if any admin users connects to a share the files are ALWAYS owned by root.
--Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2005 04:07 AM
02-18-2005 04:07 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2005 06:34 AM
02-24-2005 06:34 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
Until then I am forced to live with NFS.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2005 04:10 AM
03-04-2005 04:10 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2005 04:52 AM
03-04-2005 04:52 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
Samba supports a seamless conversion from windows file acl's to posix acls as long as the filesystem/kernel support posix acl's.
Acl's have been supported for years in most distros, to turn them on for your filesystem run this command as root:
mount -o remount,acl
And don't forget to add acl to the list of options in the fstab.
--Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2005 04:58 AM
03-04-2005 04:58 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
the list will show all people with access to the file. To do the same in linux use the getfacl command to see all the permissions on a file:
getfacl filename
The syntax for setting file access control lists is a little tougher to get used to:
to give the group "windows" full access to the file /tmp/foo you would use the command:
bofh:/tmp# setfacl -m g:windows:rwx foo
you can then check the permissions like so:
bofh:/tmp# getfacl foo
# file: foo
# owner: root
# group: root
user::rw-
group::r--
group:windows:rwx
mask::rwx
other::r--
Using samba's link when you modify the security tab of a file on a samba share the acl's are added to the file in linux exactly as they are seen in windows.
--Dave
--Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2005 06:27 AM
03-04-2005 06:27 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
I forgot to ask if you had mapped the root user to an smbuser, ie. root is in the smbpasswd file?
Since samba takes care of initial authentication when it looks in smbpasswd for the user root it will come up with nothing. Turn on debugging output with smbcontrol smbd debug 3 and watch the samba log with root connects, you should see a line like this:
Plain-text authentication for user root returned NT_STATUS_NO_SUCH_USER.
Unless smbd knows the user, ie. you ran the mksmbpasswd.sh that comes with the package to dump your local /etc/passwd > sambas smbpasswd, the user cannot log in through samba. I agree with you're assessment that HP's cifsclient probably sits on top of nfs, though. Add root to the smbpasswd and see if you can mount the drive.
The other problem where the user creates files as root regardless of the force user settings I'm almost 100% positive thats because of an admin user = user setting someplace.
--Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2005 06:30 AM
03-04-2005 06:30 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
I will do the upgrade if possible and report results. The 2.6 kernel alone probably makes it worthwhile.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 11:57 AM
03-08-2005 11:57 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
When a *nix machine mounts a remote samba share a CIF unix extension maps the remote share's file permissions to the local mount. This overrides and uid or gid settings in the mount command.
To disable the unix extension to CIFs add 'unix extensions = no' to your smb.conf on the server and restart samba. You should now be able to mount the share and specify the local uid/gid ownership in the mount command normally:
mount -t smbfs //fileserver/share /mnt/point -o credentials=credentials.file,uid=localuid,gid=localgid
- Ben
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 01:44 PM
03-08-2005 01:44 PM
Re: Samba frustration root cant mount regular user gets wrong permissions
I will give it a try and hit you with 10 points if it works.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 02:15 PM
03-08-2005 02:15 PM
Re: Samba frustration root cant mount regular user gets wrong permissions
What distribution did you use? Can you link in some docs?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 04:34 AM
03-09-2005 04:34 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
http://lists.samba.org/archive/samba/2004-October/094405.html
The guy basically says he has a patch for a bug where the server ignores the uid, gid, etc from a client, perhaps it was missed later down the line causing the bug to crop back up?
--Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 04:42 AM
03-09-2005 04:42 AM
Re: Samba frustration root cant mount regular user gets wrong permissions
This appears to be a kernel patch.
My Samba server is 2.6.5.1 Kernel.
My usual practice is to wait for RedHat to release an updated kernel and then install it.
On the RHEL side I'd have to upgrade the whole operation to RHEL 4.
I will test that on a sandbox server and see how it goes.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2005 07:19 PM
03-26-2005 07:19 PM
Re: Samba frustration root cant mount regular user gets wrong permissions
Since with your help this problem was found to be a kernel issue, as in CIFS was not integrated into the RH kernel, it would seem the engineers at Red Hat or Linus Torvold fixed the issue.
I will report back when the server farm I run is fully converted to CIFS/Samba and NFS has been eliminated.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com