Re: Program runs for "root", not for regular user

spike1_at_freenet.co.uk
Date: 06/15/04


Date: Tue, 15 Jun 2004 21:19:19 +0100

Robert Oschler <no_replies@fake_email_address.invalid> did eloquently scribble:
> Spike,
>
> I'm a bit baffled at the moment. You're right, the /home/me-the-user
> directory was indeed set to be owned by "users", although not "me-the-user".

Then change /home/me-the-user so that it IS owned (and all its contents are
owned) by me-the-user.

therein lies all your problems.
chown -R me-the-user /home/me-the-user

> However, setting the permissions to "a+w" did solve the problem (yes I am
> aware that this opens up my home directory to other users).

And set /home/me-the-user back to read/write/execute only by the user
himself.

chmod -R 700 /home/me-the-user

> /home is indeed set to ownership by root with permissions of drwxr-xr-x
>
> komodo, the binary, has permissions: -rwxrwxr-x with root as the owner, and
> is located in /usr/local/Komodo-2.5 which has permissions drwxr-xr-x with
> root as the owner.
>
> However, without the permissions set to "full write" in /home/me-the-user, I
> get a permissions error when komodo tries to write the lock file.

That's because you didn't own your own home directory, which is incredibly
broken and should be fixed.

(You need to be root to chown)

-- 
______________________________________________________________________________
|   spike1@freenet.co.uk   | "I'm alive!!! I can touch! I can taste!         |
|Andrew Halliwell BSc(hons)|  I can SMELL!!!  KRYTEN!!! Unpack Rachel and    |
|            in            |  get out the puncture repair kit!"              |
|     Computer Science     |     Arnold Judas Rimmer- Red Dwarf              |
------------------------------------------------------------------------------


Relevant Pages

  • Re: Disk Druid - Fedora flame #1
    ... What I do as root, ... Root's home directory should contain very little: ... part of a minimal boot environment. ... And the root filesystem should be as small as reasonably possible, ...
    (Fedora)
  • Re: X11Forwarding, ssh -X, and /bin/su
    ... ]>but I'm not really tunneled using ssh then, ... ]connecting to the X server and have the home directory NFS-mounted ... ](unless you leave root unmapped over NFS, ... ]root-readable place and set the environment $XAUTHORITY variable ...
    (comp.security.ssh)
  • Re: Shared User Folders and printer setup
    ... only mapping to the root? ... I have a 2003 standard server setup running as a Terminal Server to allow our other location to access our main SBS 2003 server and run our Mfg/accntg software. ... In order to get this software to work Trans-Micro (the makers of Check Factory) have a detailed procedure that allows multiple Terminal Server users to run the software at the same time. ... Does anyone have any idea why and how can I get it to look at the Home directory path Z: ...
    (microsoft.public.windows.terminal_services)
  • Re: Excellent news.. Malware for OS X!
    ... compromise and that nothing is immune. ... If it isn't already running as root, it will ask for the password ... the majority of Mac users, then malware has an even larger reach. ... Another method of avoiding that is to simply copy everything in /Applications to somewhere in your home directory and changing links appropriately. ...
    (comp.sys.mac.advocacy)
  • Re: move your home directory - second newsgroup post
    ... I'm fairly sure you'll have to enable root access ... user's home directory. ... I've never found ANY action that requires enabling ... Steve W. Jackson ...
    (comp.sys.mac.misc)