a question about installation winetrics!

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
51movie
Newbie
Newbie
Posts: 2
Joined: Wed Mar 24, 2010 11:06 am

a question about installation winetrics!

Post by 51movie »

Hi, everyone, I have a question about installation winetricks unfixed, could anyone help me?
Thanks!
the problem is, when I install the winetricks, it can be downloaded but

"length: 147,533 (144K) [text/plain]
winetricks: Permission denied

can not write to “winetricks”(Permission denied)。
aad@aad-desktop:/$
"
Of course, I run at a root user, :(
John Drescher

a question about installation winetrics!

Post by John Drescher »

On Wed, Mar 24, 2010 at 12:15 PM, 51movie <[email protected]> wrote:
Hi, everyone, I have a question about installation winetricks unfixed, could anyone help me?
Thanks!
the problem is, when I install the winetricks, it can be downloaded but

"length  147,533 (144K) [text/plain]
winetricks: Permission denied

can not write to “winetricks”(Permission denied)
aad@aad-desktop:/$
"
Of course, I run at a root user,   :(
That is most likely your problem. Do not install winetricks as root or
download it as root or install anything inside wine as root.

John
J4

a question about installation winetrics!

Post by J4 »

If you are running it as root then you ought not to have a permission
denied ;)

Downloading winetricks is fine as root, but you should copy it somewhere
useful like /usr/local/bin. I would recommend running these commands as
root in a terminal:
cd /usr/local/bin
wget 'http://www.kegel.com/wine/winetricks'
chmod +x /usr/local/bin/winetricks

Then ensure that /usr/local/bin is in your users path and then as the
non-root user run winetricks. If you get the reply 'command not found'
when you try and run it, then run the command with the full path:
/usr/local/bin/winetricks (as your normal non-root user. If you run
it as root it will not break anything, but could be considered a
security issued by you.)

Running wine as root is ill advised, but it is your computer and you can
do whatever you like.


John Drescher wrote:
On Wed, Mar 24, 2010 at 12:15 PM, 51movie <[email protected]> wrote:
Hi, everyone, I have a question about installation winetricks unfixed, could anyone help me?
Thanks!
the problem is, when I install the winetricks, it can be downloaded but

"length 147,533 (144K) [text/plain]
winetricks: Permission denied

can not write to “winetricks”(Permission denied)
aad@aad-desktop:/$
"
Of course, I run at a root user, :(

That is most likely your problem. Do not install winetricks as root or
download it as root or install anything inside wine as root.

John
John Drescher

a question about installation winetrics!

Post by John Drescher »

If you are running it as root then you ought not to have a permission
denied ;)
I think the permission denied was downloading as a normal user
overwriting a copy with root permissions. However without full output
of what command was executed as what user and what the permissions are
on the files its only speculation

I guess the error could also be caused by not having posix execute
permissions set as well.

John
[email protected]

a question about installation winetrics!

Post by [email protected] »

Apologies, this would be better to run:
mkdir -p /usr/local/bin (ignore the error message if there is one.)
cd /usr/local/bin
wget 'http://www.kegel.com/wine/winetricks'
chmod +x /usr/local/bin/winetricks

On Wed, 24 Mar 2010 17:50:15 +0100, J4 <[email protected]> wrote:
If you are running it as root then you ought not to have a permission
denied ;)

Downloading winetricks is fine as root, but you should copy it somewhere
useful like /usr/local/bin. I would recommend running these commands as
root in a terminal:
cd /usr/local/bin
wget 'http://www.kegel.com/wine/winetricks'
chmod +x /usr/local/bin/winetricks

Then ensure that /usr/local/bin is in your users path and then as the
non-root user run winetricks. If you get the reply 'command not found'
when you try and run it, then run the command with the full path:
/usr/local/bin/winetricks (as your normal non-root user. If you run
it as root it will not break anything, but could be considered a
security issued by you.)

Running wine as root is ill advised, but it is your computer and you can
do whatever you like.


John Drescher wrote:
On Wed, Mar 24, 2010 at 12:15 PM, 51movie <[email protected]>
wrote:
Hi, everyone, I have a question about installation winetricks unfixed,
could anyone help me?
Thanks!
the problem is, when I install the winetricks, it can be downloaded
but
"length 147,533 (144K) [text/plain]
winetricks: Permission denied

can not write to “winetricksâ€
Martin Gregorie

a question about installation winetrics!

Post by Martin Gregorie »

On Wed, 2010-03-24 at 17:50 +0100, J4 wrote:
If you are running [winetricks] as root then you ought not to have a permission
denied ;)
Downloaded scripts often don't have execute permission set. Trying to
run a script without execute permission will get the permission denied
error no matter what user you're logged in as.


Martin
hellork
Level 3
Level 3
Posts: 82
Joined: Thu Mar 27, 2008 7:13 pm

Re: a question about installation winetrics!

Post by hellork »

Martin Gregorie wrote:On Wed, 2010-03-24 at 17:50 +0100, J4 wrote:
If you are running [winetricks] as root then you ought not to have a permission
denied ;)
Running winetricks as root probably won't give you the results you require or expect. The changes will go through to /root/.wine and not apply to $HOME/.wine at all. Running as sudo is even worse. The changes will apply to $HOME/.wine allright, but now the permissions will have changed to root on certain files in the user's home directory, making it so that the relevant settings can't be modified by that user in the future without the crutch of sudo. Then there is the sticky problem that anything running under wine as sudo will have full access to the system, including the ability to delete the entire drive. Such a thing can not be whole-heartedly recommended.
http://wiki.winehq.org/FAQ#head-96bebfa ... 78b0d41014
http://wiki.winehq.org/FAQ#head-f60a1ae ... 2b1608f358
Martin Gregorie

a question about installation winetrics!

Post by Martin Gregorie »

On Thu, 2010-03-25 at 17:24 -0500, hellork wrote:
Martin Gregorie wrote:On Wed, 2010-03-24 at 17:50 +0100, J4 wrote:
If you are running [winetricks] as root then you ought not to have a permission
denied ;)
Running winetricks as root probably won't give you the results you require or expect.
Please be a little more careful with your attributions in future.

I am *not* associated with suggestions to run winetricks as root.

What I wrote was that trying to run a script that doesn't have execute
permissions set will always generate the "Permission denied" error no
matter which user its run under.


Martin
51movie
Newbie
Newbie
Posts: 2
Joined: Wed Mar 24, 2010 11:06 am

Post by 51movie »

Thank you for your kind reply.
Fortunately i fix the problem.
When i describe the problem i met, i forgot the enviroment: i have installed wine.The method is inspired by above friends.
First i change the root user to ordinary user:
su jame
Owing to the installed wine, i found the installed path of wine:
cd /home/jame/.wine
under the wine directory,
wget http://kegel.com/wine/winetricks
--02:26:48-- http://www.kegel.com/wine/winetricks
=> `winetricks'
正在解析主机 www.kegel.com... 211.99.99.xxx
正在连接 www.kegel.com|211.99.99.xxx|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 147,533 (144K) [text/plain]

100%[====================================>] 147,533 84.40K/s

02:26:50 (84.23 KB/s) - `winetricks' 已经保存 [147533/147533]
...

Thx all the kind friends!
Locked