Find the answer to your Linux question:
Results 1 to 4 of 4
I have a very strange situation and can't get to the bottom of it. Does anyone know anything in this area? I have a fairly simple common shared area on ...
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Location
    Derbyshire, England
    Posts
    2

    Samba and XP-Home

    I have a very strange situation and can't get to the bottom of it. Does anyone know anything in this area?

    I have a fairly simple common shared area on Samba (on Fedpra Code 2) which is accessed via various mainly Windows clients.

    A specific problem occurs when either of the 2 machines running XP-Home uses it. They can create files, change them and move them but cannot delete them. This problem does not occur when XP-Pro accesses the area. In fact I've tried setting different accounts on different machines and it seems to be down to XP-Home!

    XP-Home, Logon as userhome ... cannot delete
    XP-Home, Logon as userpro ... cannot delete
    XP-Pro, Logon as userhome ... no problem
    XP-Pro, Logon as userpro ... no problem

    Windows 98 does not show this problem (although there are other issues which I've not got to in detail yet but superficially, look different).

    I'm running a setup on my own installation which mirrors the way things are done (folder and user names are different) and have no problems with Win2000pro or Win98, though I don't have an XP-Home machine attached.

    the smbusers file, in fact, maps all users to the same user;
    office = userpro userhome ...etc
    and any files created in the shared area show as being owned by 'office'.

    The samba config file defines the shared area as follows, although I don't think this info'll help since it works for most users!

    [common]
    comment = /common
    browsable = yes
    writable = yes
    guest ok = yes
    read only = no
    create mode = 0750
    directory = /home/common

    Are any problems known with XP-Home and samba? I can't even think of a way of creating the situation where I can do everything except delete a file; how can it be done?

  2. #2
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    It looks like the world has no permissions which is good and group only has read and execute permissions. What you explain doesn't make sense but according to you config the only person that should have delete priviledges is root.
    I don't know what users and groups you have on the box, but if you want to fix your problem try this in a term
    su -
    <password>
    cd /home
    chmod 770 common
    if common is a directory and you want to go recusively
    chmod -R 770 common

    also change create mode = 770

    Mike
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  3. #3
    Linux User
    Join Date
    Jan 2003
    Location
    Cardiff, Wales
    Posts
    478

    xp home

    windows 98 doesn't actually login to samba in the true sense of the word. so thats pretty iffy and you'll get all sorts of strange stuff with it as its basically unsecure.

    windows xp home and pro are different and the real difference is in the user authentication and the logon mechanisms. XP home doesn;t support domain logins whereas pro does.

    you should do as suggested above then check your log files - delete them all first and then try and access a folder on xp home and delete a file. see what it says.
    No trees were harmed during the creation of this message. Its made from a blend of elephant tusk and dolphin meat.

  4. #4
    Just Joined!
    Join Date
    Jan 2005
    Location
    Derbyshire, England
    Posts
    2
    The common folder is actually already chmod'ed to 777 so everyone should be able to do anything.

    Security is not an issue on this server anyway, although I'll tighten it up once (if) I ever get this sorted out.

    I'm aware that 98 is a totally different animal, which is why I'm not too bothered about that at this stage and I also know that XPpro and home have significant differences in the way they handle security and authentication.

    It does seem to me that if XPhome can create a file, edit it and move it to a different folder and all file and folder permissions are set to 777 (rwxrwxrwx) - which they are and the user creating the file and trying to delete it is the owner and on top of that a user can work quite hapilly from an XPpro machine but not (with the same login) from XPhome... well it seems to me like Mr Gates' system is doing something very strange!

Posting Permissions

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