Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I've been banging my head against the wall for while about this one and can't track down a solution. I need some expertise.
I've got a shared folder "Joe" on my WinXP Home machine that I mount with fstab:
//newguy/Joe /mnt/Joe smbfs credentials=/etc/samba/private/.smbpw,defaults,rw 0 0
It mounts fine, any user can read from the share, but I cannot write, even as root. My messages log has this after an attempt:
Feb 9 09:47:41 yeOldZX kernel: smb_create: //test failed, error=-13
And my amateur combing of my samba log finds these entries that have something to do with authorization, what I don't know:
[2005/02/09 08:19:08, 5] auth/auth_util.c:debug_nt_user_token(486)
NT user token: (NULL)
[2005/02/09 08:19:08, 5] auth/auth_util.c:debug_unix_user_token(505)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
[2005/02/09 08:19:08, 5] smbd/uid.c:change_to_root_user(296)
change_to_root_user: now uid=(0,0) gid=(0,0)
My credentials file is Ok, I assume, since it mounts fine. What am I missing for write permissions? Might be something on the windows side, but I can write to the share from windows as any user Ok. Any ideas where I should look for the problem?
Thanks for the link cowanrl. I've actually read through that one already. The problem is that even root cannot write to the share.
secesh, I'm not sure I understand. It's a windows share, does my smb.conf file affect it? I inserted that into my config file and got the same result. Also, if I mount with smbclient I get the following error trying to write (put):
Sorry, I missed that even root couldn't write to the share.
You may need to trun off Simple File Sharing on XP Home. Here's an excerpt from MS Technet on how to do that:
Turning on and turning off Simple File Sharing
Simple File Sharing is always turned on in Windows XP Home Edition-based computers. By default, the Simple File Sharing UI is turned on in Windows XP Professional-based computers that are joined to a workgroup. Windows XP Professional-based computers that are joined to a domain use only the classic file sharing and security interface. When you use the Simple File Sharing UI (that is located in the folder's properties), both share and file permissions are configured.
If you turn off Simple File Sharing, you have more control over the permissions to individual users. However, you must have advanced knowledge of NTFS and share permissions to help keep your folders and files more secure. If you turn off Simple File Sharing, the Shared Documents feature is not turned off.
To turn Simple File Sharing on or off in Windows XP Professional, follow these steps:
Double-click My Computer on the desktop.
On the Tools menu, click Folder Options.
Click the View tab, and then select the Use Simple File Sharing (Recommended) check box to turn on Simple File Sharing. (Clear this check box to turn off this feature.)
Thanks for the input. I checked into Simple File Sharing and according to another KB article from MS:
Note You cannot turn off simple file sharing in Microsoft Windows XP Home Edition.
Not worth upgrading to professional for at this point. Stupid windows.
With simple file sharing all access is as Guest. I've "Allowed network users to change my files" on the share, but no love. It does sound like it's a problem with windows permissions and probably not something I can fix on my linux box. I'll continue my search though and post back if anything works. Thanks again for your help.
i ran into similar issue trying to lock-down a version of XP home so some kids couldn't muck it up as much...
here's the idea: XP home still has many of the features of pro -- it's just that they're buried pretty deep.
boot to safe mode. This gives you expanded administrative capabilities (like logging on as "Administrator" and editing file/folder permissions)
once up, find the shared folder, right-click and select 'properties' -- you should now have a security tab in which you can edit access permissions.
Brilliant! secesh, that was just what I needed. I had no idea that was available in xp home. Thanks both of you for your input. Writing to my share is working great, and can quit banging my head. I think I need to harden that wide open Guest account though. Sheesh.