LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2013, 02:53 AM   #1
hegira
Member
 
Registered: Aug 2013
Posts: 62

Rep: Reputation: 0
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?

Last edited by hegira; 08-27-2013 at 04:21 AM.
 
Old 08-27-2013, 10:34 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,550

Rep: Reputation: 862Reputation: 862Reputation: 862Reputation: 862Reputation: 862Reputation: 862Reputation: 862
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
 
1 members found this post helpful.
Old 08-27-2013, 10:51 AM   #3
hegira
Member
 
Registered: Aug 2013
Posts: 62

Original Poster
Rep: Reputation: 0
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.
 
Old 08-27-2013, 10:54 AM   #4
hegira
Member
 
Registered: Aug 2013
Posts: 62

Original Poster
Rep: Reputation: 0
Ok business kid, working on that.
 
Old 08-27-2013, 09:41 PM   #5
hegira
Member
 
Registered: Aug 2013
Posts: 62

Original Poster
Rep: Reputation: 0
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.
 
Old 08-27-2013, 10:18 PM   #6
hegira
Member
 
Registered: Aug 2013
Posts: 62

Original Poster
Rep: Reputation: 0
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?
 
Old 08-28-2013, 01:03 AM   #7
hegira
Member
 
Registered: Aug 2013
Posts: 62

Original Poster
Rep: Reputation: 0
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! :/
 
Old 08-28-2013, 01:12 AM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,504
Blog Entries: 6

Rep: Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421
Quote:
Originally Posted by hegira View Post
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.
 
1 members found this post helpful.
Old 08-28-2013, 01:33 AM   #9
hegira
Member
 
Registered: Aug 2013
Posts: 62

Original Poster
Rep: Reputation: 0
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.
 
Old 08-28-2013, 01:39 AM   #10
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,504
Blog Entries: 6

Rep: Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421
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.
 
1 members found this post helpful.
Old 08-28-2013, 01:49 AM   #11
hegira
Member
 
Registered: Aug 2013
Posts: 62

Original Poster
Rep: Reputation: 0
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
 
Old 08-28-2013, 02:00 AM   #12
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,504
Blog Entries: 6

Rep: Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421
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?

Last edited by astrogeek; 08-28-2013 at 02:02 AM.
 
1 members found this post helpful.
Old 08-28-2013, 02:13 AM   #13
hegira
Member
 
Registered: Aug 2013
Posts: 62

Original Poster
Rep: Reputation: 0
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.
 
Old 08-28-2013, 02:22 AM   #14
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,504
Blog Entries: 6

Rep: Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421Reputation: 2421
Quote:
Originally Posted by hegira View Post
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?
 
1 members found this post helpful.
Old 08-28-2013, 02:29 AM   #15
hegira
Member
 
Registered: Aug 2013
Posts: 62

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NetworkManager isn't behaving properly in normal user, but works well in root user. MarkZar Linux - Networking 1 02-17-2013 12:32 AM
RPM search as user fails and works with root user kais1 Linux - Newbie 7 09-02-2012 07:22 PM
[SOLVED] DBD::ODBC works as root but not as non-root user on CentOS5 - any ideas? prgupta Red Hat 2 07-13-2010 01:20 AM
[SOLVED] no sound as non-root user on slackware64 wubai Slackware 10 12-30-2009 06:26 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration