LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   astrill works in root but not user in slackware64-14 (https://www.linuxquestions.org/questions/linux-newbie-8/astrill-works-in-root-but-not-user-in-slackware64-14-a-4175474843/)

hegira 08-27-2013 01:53 AM

astrill works in root but not user in slackware64-14
 
Running slackware64-14 and I finally got astrill installed in root, and it works and everything is fine in root, but when I change to user, nothing happens when I run it? When I try to run it in user, the exact same way I did in root, it wont work -- neither the desktop icon or the executable. I would really like to just install things as root, and have them work for any of the user accounts. Is this possible?

business_kid 08-27-2013 09:34 AM

Itīs permissions. You may have to join some group or the like. Run the exe in a terminal to trap the errors and post them. Check the README & INSTALL files in /usr/share/package-name/ for instructions

hegira 08-27-2013 09:51 AM

when logged in as user, I checked the permissions by
Quote:

ls -l
in the
Quote:

/usr/local/Astrill
directory, and I get:
Quote:

root root
for all of the files there. I figured out how to change the owner and group using chown, and I tried doing that for just the binary, and it didn't work. I guess I should try doing that for the whole directory? Any suggestions greatly appreciated.

hegira 08-27-2013 09:54 AM

Ok business kid, working on that.

hegira 08-27-2013 08:41 PM

Business kid, I try running the exe in the terminal both as user and by typing sudo first. All I get is a new line with a blinking cursor. Also, there are no astrill-related files in /usr/share/docs there is only one .txt which only contains one sentence concerning terms of service.

hegira 08-27-2013 09:18 PM

wow. I just changed the onership and the permissions for everything in /usr/local/Astrill to have owner the user and group users, and all with permissions 777. Still nothing. Can someone please help?

hegira 08-28-2013 12:03 AM

Now I am starting to think its not a permissions thing. I just added my user to every group there is in /etc/group and still astrill does not start in user account! :/

astrogeek 08-28-2013 12:12 AM

Quote:

Originally Posted by hegira (Post 5017176)
wow. I just changed the onership and the permissions for everything in /usr/local/Astrill to have owner the user and group users, and all with permissions 777. Still nothing. Can someone please help?

I know nothing about Astrill, but some things will not run if they are 777, I would think a VPN app would be likely to check vulnerable permissions. Chmoding everything 777 is usually not a good idea.

Can you put it back as it was when installed and show us the whole output of ls -l for both the directory and the files in the top level directory.

hegira 08-28-2013 12:33 AM

Sure. I reinstalled it and here is what the permissions are set to on installation:

Quote:

-rwxr-xr-x 1 root root 294 Jul 6 14:58 Astrill.desktop
-rw-r--r-- 1 root root 291 Jul 6 14:58 LICENSE.txt
-rw-r--r-- 1 root root 509 Jul 6 14:58 README.txt
-rwxr-xr-x 1 root root 18784 Jul 6 14:58 asaccel
-rwxr-xr-x 1 root root 257728 Jul 6 14:58 ascache
-rwxr-xr-x 1 root root 1787240 Jul 6 14:58 asovpnc
-rwsr-xr-x 1 root root 336536 Jul 6 14:58 asproxy
-rwxr-xr-x 1 root root 8996240 Jul 6 14:58 astrill
-rw-r--r-- 1 root root 102134 Jul 6 14:58 astrill.ico
-rw-r--r-- 1 root root 13892 Jul 6 14:58 liblsp.so
-rw-r--r-- 1 root root 18856 Jul 6 14:58 liblsp64.so
-rwxr-xr-x 1 root root 5540 Jul 6 14:58 lsptest
-rwxr-xr-x 1 root root 6248 Jul 6 14:58 lsptest64
-rw-r--r-- 1 root root 7 Jul 6 14:58 prodver
Also, I thought I would check, and it still works fine in root but wont start in user.

astrogeek 08-28-2013 12:39 AM

Ok good!

Just guessing at what the executables are, the permissions look ok.

What is your path as both root and user?

Code:

echo $PATH
While you do that I'll see if I can find anything to quickly inform myself about Astrill.

hegira 08-28-2013 12:49 AM

OK. For user I get:

Quote:

/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin
and for root I get:

Quote:

/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin

astrogeek 08-28-2013 01:00 AM

Ok. I can't say I found anything useful for myself, so I'll take another guess or two and ask anyone with good VPN knowledge or Astrill exerience to step up...

You say it is installed to /usr/local/Astrill, but that is not on your path for either root or other user, so let's try that first, and let's do it for both just to be complete.

First, let's make sure it works for root as expected. Open a terminal and...

Code:

export PATH=$PATH:/usr/local/Astrill

Then...

echo $PATH - just to be certain

Then run Astrill...

If that is OK, then do the same for you normal user in a new terminal...

One other question, are you starting it from a GUI menu or from a terminal?

hegira 08-28-2013 01:13 AM

Ok. So I did that in root, and after echo I see the path printed at the end of list. Then when I run astrill it still works fine. Then I switched to user account and did the same thing. Still nothing happens. I try both gui menu and terminal. When I use gui, nothing visible happens at all, when I use terminal, I get a blinking cursor in a new line with nothing happening.

astrogeek 08-28-2013 01:22 AM

Quote:

Originally Posted by hegira (Post 5017258)
Ok. So I did that in root, and after echo I see the path printed at the end of list. Then when I run astrill it still works fine. Then I switched to user account and did the same thing. Still nothing happens. I try both gui menu and terminal. When I use gui, nothing visible happens at all, when I use terminal, I get a blinking cursor in a new line with nothing happening.

I should have said, starting from the gui menu will not inherit the path change, sorry.

But just to be completely certain - you exported the PATH then started Astrill from the same temrminal window - yes? (The exported PATH is only effective inside the same shell, i.e., terminal window).

Now we are in unfamiliar territory for me, I don't know what you see when it works, so I don't know what to expect when it doesn't...

SO, when you start it as root in a terminal window, when it works, what do you get? Does it wait give a text prompt or does it open a gui dialog?

hegira 08-28-2013 01:29 AM

when I start it as root, I get an astrill gui with fields for email and pswd. In root, this comes up when astrill is started from terminal or started from dolphin.

Quote:

But just to be completely certain - you exported the PATH then started Astrill from the same temrminal window - yes? (The exported PATH is only effective inside the same shell, i.e., terminal window).
yes. I used same terminal, but nothing happened.


All times are GMT -5. The time now is 12:44 PM.