Re: Disappearing files, created from /etc/X11/Xclients



Laszlo Nagy wrote:


The strange thing is that, if I login with user 'gandalf' who is in 'wheel', the files are created and saved into /tmp/disklessips/gandalf.txt and /tmp/disklessips/gandalf.history.txt. But if I login with any other user (they are in group 'users'), no files are created, but the window manager IS started. The startwm.py program creates these files BEFORE starting gnome, and it does throw an error. So they must have been created, but I do not see them anywhere. They simply disappear. Never existed? Any thoughts?
[...]
fout = file('%s/%s.txt'%(ddir,os.getlogin()),'wb+')

If os.getlogin() failed non-fatally and returned, say, and empty string, then you'd be creating a file called ".txt", if I read correctly. What does "ls -lsa /tmp/disklessips" show? Do you in fact have .txt and .history.txt files (which a simple ls won't show you).

Failing that, you'll just need to include some debugging. Open a file in /tmp to write stuff to, and print *all* the various variables you use to that file. (Or just print them to stdout if that will show up on the console). Then try as some other user and check that everything really does have the value you think it does.

Since python doesn't crash, my belief is that it really has written the stuff somewhere.

hth,

--Alex




_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: If you used Linux before why did you switch to FreeBSD?
    ... >Bill Vermillion ... >>I was thinking along the lines of letting those in the wheel group ... >>get root privledges as the real ID would be their login ID, ... >>they could not login from anywhere using a wheel user login. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: If you used Linux before why did you switch to FreeBSD?
    ... >> The 'wheel' concept from my POV isn't that secure. ... >wheel group must never be allowed to login remotely via user/pass, ... when I had the SGI's up as web-servers and email machines. ... Bill Vermillion - bv @ wjv. ...
    (comp.unix.bsd.freebsd.misc)
  • (no subject)
    ... I added a new user with login 'davcav' in the 'wheel' group and also I ... Somebody in the web suggest to use the 'su' command for mounting the device ...
    (freebsd-questions)
  • Login as root works, but sudo doesnt?
    ... member of "wheel". ... I can exit and login as root with no problems. ...
    (comp.unix.misc)