LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Firebird won't run as user (https://www.linuxquestions.org/questions/linux-software-2/firebird-won%27t-run-as-user-127058/)

downinthemine 12-18-2003 05:06 PM

Firebird won't run as user
 
When I run Firebird by typing:
./usr/local/MozillaFirebird/MozillaFirebird

as root, it runs fine.
When I run it as user, it doesn't.

Any ideas? I just installed slack, this was never an issue under mandrake.
Andy

Tinkster 12-18-2003 05:16 PM

ls -l /usr/local/MozillaFirebird/



Cheers,
Tink

downinthemine 12-18-2003 05:37 PM

Here is the output. I should mention that when I run it as user, I do not get a message saying I don't have the proper permissions to run it. I get the prompt back.

total 4052
-rwxrwxr-x 1 8482 501 2765 Oct 7 20:59 MozillaFirebird*
-rwxrwxr-x 1 8482 501 62684 Oct 7 21:00 MozillaFirebird-bin*
drwx------ 3 root root 584 Dec 18 22:35 chrome/
drwx------ 2 root root 6240 Dec 18 22:36 components/
drwx------ 5 root root 128 Dec 18 21:50 defaults/
drwx------ 2 root root 112 Dec 18 22:35 icons/
-rwxrwxr-x 1 8482 501 163584 Oct 7 21:00 libgkgfx.so*
-rwxrwxr-x 1 8482 501 113156 Oct 7 21:00 libgtkembedmoz.so*
-rwxrwxr-x 1 8482 501 18564 Oct 7 21:00 libgtksuperwin.so*
-rwxrwxr-x 1 8482 501 12724 Oct 7 21:00 libgtkxtbin.so*
-rwxrwxr-x 1 8482 501 112500 Oct 7 21:00 libjsj.so*
-rwxrwxr-x 1 8482 501 517448 Oct 7 21:00 libmozjs.so*
-rwxrwxr-x 1 8482 501 53224 Oct 7 21:00 libmozz.so*
-rwxrwxr-x 1 8482 501 208492 Oct 7 21:00 libnspr4.so*
-rwxrwxr-x 1 8482 501 435544 Oct 7 21:00 libnss3.so*
-rwxrwxr-x 1 8482 501 179796 Oct 7 21:00 libnssckbi.so*
-rwxrwxr-x 1 8482 501 16032 Oct 7 21:00 libplc4.so*
-rwxrwxr-x 1 8482 501 10124 Oct 7 21:00 libplds4.so*
-rwxrwxr-x 1 8482 501 149384 Oct 7 21:00 libsmime3.so*
-rw-rw-r-- 1 8482 501 476 Oct 7 21:00 libsoftokn3.chk
-rwxrwxr-x 1 8482 501 455028 Oct 7 21:00 libsoftokn3.so*
-rwxrwxr-x 1 8482 501 136736 Oct 7 21:00 libssl3.so*
-rwxrwxr-x 1 8482 501 47208 Oct 7 21:00 libxlibrgb.so*
-rwxrwxr-x 1 8482 501 1013732 Oct 7 21:00 libxpcom.so*
-rwxrwxr-x 1 8482 501 123724 Oct 7 21:00 libxpcom_compat.so*
-rwxrwxr-x 1 8482 501 14596 Oct 7 21:00 libxpistub.so*
-rwxrwxr-x 1 8482 501 5004 Oct 7 21:00 mangle*
-rwxrwxr-x 1 8482 501 9276 Oct 7 21:00 mozilla-xremote-client*
drwx------ 2 root root 80 Dec 18 22:35 plugins/
-rwxrwxr-x 1 8482 501 15212 Oct 7 21:00 regchrome*
-rwxrwxr-x 1 8482 501 81984 Oct 7 21:00 regxpcom*
drwx------ 8 root root 1832 Dec 18 22:35 res/
-rwxrwxr-x 1 8482 501 10998 Apr 18 2003 run-mozilla.sh*
drwx------ 2 root root 112 Dec 18 22:35 searchplugins/
-rwxrwxr-x 1 8482 501 70564 Oct 7 21:00 shlibsign*
-rwxrwxr-x 1 8482 501 4012 Oct 7 21:00 timebombgen*
-rwxrwxr-x 1 8482 501 29204 Oct 7 21:00 xpicleanup*

Tinkster 12-18-2003 06:32 PM

The problem is the permissions on the subdirectories,
I'd say ... try
Code:

find /usr/local/MozillaFirebird/ -type d -exec chmod go+rx {} \;
find /usr/local/MozillaFirebird/ -type f -exec chmod go+r {} \;

If that doesn't fix it look at the subdirectories, check
whether any files in there might need to be executable,
too...

Cheers,
Tink

downinthemine 12-18-2003 08:17 PM

That did it! Thanks. Could you explain to me exactly what I did just there. I gather I searched those subdirectories to change the permissions on all the directors and executables therein, what is "{} \:"?

Tinkster 12-18-2003 08:47 PM

man find

:}


What you did is
Code:

find <subdirectory to start with> -type d -exec chmod go+rx {} ;\
                                  ^^^^^^^ ^^^^^            ^^^^^
                                  all files  |                |
                                  that are    |                |
                                  directories |                |
                                              |                |
                                          tells find    part of exec,
                                          to do the    it's the placeholder
                                          next command  for the name of the
                                          with every    found file, plus the
                                          match        termination of the exec
                                                        statement

Find is one of my all-time favourites ;)
So powerful...

Cheers,
Tink


All times are GMT -5. The time now is 11:08 PM.