my other user (user account) cannot access application. But the Administrator can

Asked by Heng Kiong

i installed a program with the administrator account.But my other user accounts cannot access this application. Please help

Thank you

Heng Kiong

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Hanusz leszek
Solved:
Last query:
Last reply:
Revision history for this message
Hanusz leszek (leszek-skynet) said :
#1

Hello,

Which program did you install ?
How did you installed it ?

Revision history for this message
Heng Kiong (hengkiong) said :
#2

hi thanks for the prompt response. i installed ie4linux as we need to access http://lead.com.sg where the email login page will only show if using an IE.

Revision history for this message
Hanusz leszek (leszek-skynet) said :
#3

Hello,

You should not install ie4linux as administrator.
You should install it as a user. (ie4linux is installed in the user home directory).

You need to remove the files created by ie4inux:
sudo rm -rf ~/.ies4linux

Then install ie4linux AS A USER with:
 wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
 tar zxvf ies4linux-latest.tar.gz
 cd ies4linux-*
 ./ies4linux

If you have few users, you can repeat the operation for each user or else you can allow other users to run one version with the privileges of the user which installed it (with a sudo rule)

Revision history for this message
Heng Kiong (hengkiong) said :
#4

many thanks for this reply. My only concern is that everytime i install a new application, I would have to login using the different user accounts and install the same software again and again. Is there a way I can install using the administrator account as I only have access to this and share the application with other users?

BTW, or else you can allow other users to run one version with the privileges of the user which installed it (with a sudo rule)- can you elaborate on this?

Sorry for my ignorance and thank you very much for your help

Revision history for this message
Hanusz leszek (leszek-skynet) said :
#5

Navigate to System->Administration->Users and group

Create a new user with:
User= wine
Complete name= wine
Enter a password
Use the default for all the other options

Then log off your session and log in with the new "wine" user.

Open a terminal and install ies4linux (NOT AS ADMINISTRATOR):
 wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
 tar zxvf ies4linux-latest.tar.gz
 cd ies4linux-*
 ./ies4linux

Now you should be able to launch ie6 with "/home/wine/bin/ie6" in a terminal.

Log off from the wine session and log in on your main user account.

Open a terminal and type:
sudo visudo
It should give you an editor where you can insert sudo rules.
At the end of the file you can insert this line:
ALL ALL = (wine) NOPASSWD:ALL
It means that all users can ran commands as if they are the wine user without giving a password
save and go back to the terminal.

run this command to allow the wine program to access the display:
xhost +
you can now type this command to run ie6 from your main account (and all others too):
sudo -u wine /home/wine/bin/ie6

to facilitate you can automate this in a script.
Enter this command in a terminal:
sudo gedit /usr/local/bin/ie6

It should give you a text editor.
Enter these 3 lines in the text editor and save the file:

#!/bin/bash
xhost +
sudo -u wine /home/wine/bin/ie6

Close the text editor, go back to the terminal and type this command to make this file executable:
sudo chmod 755 /usr/local/bin/ie6

Now you can launch Internet explorer by typing ie6 in a terminal from all the accounts.

Revision history for this message
Heng Kiong (hengkiong) said :
#6

wow,i am impressed.thanks for the step by step guide, it works

last two questions, hopefully;

1. when ie4linux is launched and the first page that greets me prompted me
to download the updates for Windows Internet Explorer, i suppose I do not
have to do that, right?

2. is there a way to create a shortcut icon that, when clicked, launches
ie4linux instead of typing ie6 on the terminal?

Sorry for being such a bother,

newbie, heng kiong

On 6/26/07, Hanusz leszek <email address hidden> wrote:
>
> Your question #8686 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/8686
>
> Status: Open => Answered
>
> Hanusz leszek proposed the following answer:
> Navigate to System->Administration->Users and group
>
> Create a new user with:
> User= wine
> Complete name= wine
> Enter a password
> Use the default for all the other options
>
> Then log off your session and log in with the new "wine" user.
>
> Open a terminal and install ies4linux (NOT AS ADMINISTRATOR):
> wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
> tar zxvf ies4linux-latest.tar.gz
> cd ies4linux-*
> ./ies4linux
>
> Now you should be able to launch ie6 with "/home/wine/bin/ie6" in a
> terminal.
>
> Log off from the wine session and log in on your main user account.
>
> Open a terminal and type:
> sudo visudo
> It should give you an editor where you can insert sudo rules.
> At the end of the file you can insert this line:
> ALL ALL = (wine) NOPASSWD:ALL
> It means that all users can ran commands as if they are the wine user
> without giving a password
> save and go back to the terminal.
>
> run this command to allow the wine program to access the display:
> xhost +
> you can now type this command to run ie6 from your main account (and all
> others too):
> sudo -u wine /home/wine/bin/ie6
>
>
> to facilitate you can automate this in a script.
> Enter this command in a terminal:
> sudo gedit /usr/local/bin/ie6
>
> It should give you a text editor.
> Enter these 3 lines in the text editor and save the file:
>
> #!/bin/bash
> xhost +
> sudo -u wine /home/wine/bin/ie6
>
> Close the text editor, go back to the terminal and type this command to
> make this file executable:
> sudo chmod 755 /usr/local/bin/ie6
>
>
> Now you can launch Internet explorer by typing ie6 in a terminal from all
> the accounts.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/8686/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/8686
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
houxue xingqiang

Revision history for this message
Best Hanusz leszek (leszek-skynet) said :
#7

You don't need to download the updates. It won't work anyway (I think).

There is 2 methods to add shorcuts:

method 1:

You have to repeat this method for each user.
Right-click on the Desktop -> "Create Launcher"
Name: Internet Explorer
command: ie6
Click on the "no icon" button and add this icon : /home/wine/.ies4linux/ies4linux.svg

method 2:

This method is a little more complicated but will add an icon in the menu for all the users.
Open a terminal and type this command:
gksu gedit /usr/share/applications/ie6.desktop

Enter the following lines in the text editor:

[Desktop Entry]
Encoding=UTF-8
Name=Internet Explorer
Comment=Microsoft Internet Browser
Exec=ie6
Type=Application
Icon=/home/wine/.ies4linux/ies4linux.svg
Categories=Application;Network;

Save the file and exit the text editor.

Now You should have access to Internet Explorer via Applications -> Internet -> Internet Explorer

Revision history for this message
Jo-Erlend Schinstad (joerlend.schinstad-deactivatedaccount) said :
#8

You can make an icon on your desktop by right-clicking and using the "create starter" (I don't remember the english name for it) menu item.

Revision history for this message
Heng Kiong (hengkiong) said :
#9

Thanks Hanusz leszek, that solved my question.