Find the answer to your Linux question:
Results 1 to 5 of 5
This has been a problem and desipite my best efforts I am at a loss to explain what is happening. I am running a Suse 11 box and I will ...
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    4

    [SOLVED] Suse 11 Enterprise cannot write to XP share

    This has been a problem and desipite my best efforts I am at a loss to explain what is happening.

    I am running a Suse 11 box and I will be storing some automated backups on an XP box. The Suse box is hosting a samba domain to which the xp box is a member.

    For the moment the share permissions are wide open while I troubleshoot (everyone full access on the xp share) I can mount the share no problem on the Suse box and even read the contents. If I attempt to write to the share though I get permission denied (logged in as root at the moment)

    I created the mount point using mkdir -p /media/backup
    Then I mounted the share using mount -t cifs //172.16.16.245/backup /media/backup -o username=root, -o password=XXXXXXX

    share on the XP box is also called backup (just in case there was any confusion regarding the mount command I used)

    if I run an ls -l on the mount point afterwords I can see my files already in the share no problem. I would be very greatful if anyone can point out what I have done wrong so I can get this fixed once and for all. Thank you in advance.

    I should probably also mention that both systems are on the same lan and at the moment firewalls are down until this is fixed.

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    You didn't specify what mode to mount the share in on the command line. Is it being mounted read/write (RW)?

    Code:
    mount
    
    /dev/md2 on /XXXX type xfs (rw)
    XXXX:/share1 on /media/XXX type nfs (rw,addr=XXXX)
    XXXX:/share2 on /media/XXX type nfs (ro,addr=XXXX)
    Code:
    mount -t cifs //IP/SHARE /local/folder -o rw,user=XXX,pass=XXX
    If I attempt to write to the share though I get permission denied (logged in as root at the moment)
    This has *nothing* to do with a CIFS share and permissions. You have whatever permissions are granted to the account used to authenticate to the Windows share. (Minus the share being mounted locally as read-only.)

    ** Now I see that your *Windows* username is root? So you have added the "root" username from your Samba NT4 domain with permissions on this Windows folder/share? Log into the Windows machine as "root" and try to write to the same folder.
    Last edited by HROAdmin26; 09-13-2010 at 09:26 PM.

  3. #3
    Just Joined!
    Join Date
    Sep 2010
    Posts
    4
    I unmounted the share and reran as this:

    mount -t cifs //172.16.16.245/backup /media/backup -o rw,username=root -o password=XXXXXX

    This had no effect. I also tried running the identical command but replacing root with administrator (root is not a windows user). To be double sure I tested both possibilities while the XP system was logged into the samba domain as root, and while the local administrator was logged into the local machine only.

    All four attempts produced the same results which was where I started. The share mounts but is read only when accessed from the linux box. I unmounted the share before each new attempt.

    Thanks,

  4. #4
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    1) As stated previously, if you mounted it "rw" then Linux considers the location OK for writing. Any failure to do so now is on the Windows side.

    2) If you use bogus accounts/credentials and Windows still lets you mount the share...then you don't have permissions set up. Apparently anon can mount the share and you're getting anon's permissions. Is this XP Professional? Is "simple file sharing" still enabled? You'll need to look on the Windows side to resolve this. You may want to be aware of specifying a domain as well when authenticating to Windows. If a Windows machine is a domain member, it will default to using that domain to check for accounts first. To ensure you're using the local system's Administrator account, you'll need to use user=XP_HOSTNAME/Administrator on the SuSE machine. (But as these are Windows concerns, I digress.)

  5. #5
    Just Joined!
    Join Date
    Sep 2010
    Posts
    4
    I had granted full permissions to the share while logged into the domain as root. However, it turns out I missed the file permission shares on the XP box while logged in as the local administrator. Somehow I left that as read only and that was the sources of this headache.

    Anyhow thankyou for all your help, the issue is resolved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...