Archived

This topic is now archived and is closed to further replies.

Hesham4488

"Permision Denied" while installing utorrent?

Recommended Posts

I have installed the latest copy of Ubuntu Linux amd64 and tried to install the uTorrent client but all I get is the following

root@ubuntu:/media/Main/temp/utorrent-server-v3_0# ./utserver
-bash: ./utserver: Permission denied

Notice that I'm already on root so what permission?

Thanks in advance.

P.S It's my first time using Linux so please, go easy on the Linux newbie :)

Share this post


Link to post
Share on other sites
Notice that I'm already on root so what permission?

Filesystem permissions still need to be set right regardless, and it's not a good idea to run usermode applications like uTorrent as root if you can avoid it.

Share this post


Link to post
Share on other sites
Filesystem permissions still need to be set right

So I should call chmod.

Would you please provide me with the correct parameters to use with chmod in my case?

chmod [OPTION] MODE[,MODE] FILE

chmod ?? ?? utserver

Share this post


Link to post
Share on other sites

linux@ubuntu:/media/Main/temp/utorrent-server-v3_0$ chmod 755 utserver
linux@ubuntu:/media/Main/temp/utorrent-server-v3_0$ ./utserver
bash: ./utserver: Permission denied
linux@ubuntu:/media/Main/temp/utorrent-server-v3_0$ ls -l
total 1280
drwx------ 1 linux linux 4096 2011-03-08 10:29 docs
-rw------- 1 linux linux 980789 2011-03-08 10:29 utserver
-rw------- 1 linux linux 322685 2011-03-08 10:29 webui.zip

That's the outcome.

Share this post


Link to post
Share on other sites

Root doesn't own the utserver binary and only user linux has permissions.

Your pasted snippet shows that you are not running as root. You are running as user linux. The "permission denied" is because the utserver binary does not have execute permission set.

chmod 755 should set execute permission but it clearly hasn't done in this case. Don't know why. This is your real problem, chmod not working for some reason. Do "whereis chmod" to make sure you are executing the correct file in /bin/chmod. Test it on some dummy files to see if it does anything at all.

Share this post


Link to post
Share on other sites

Yes the filesystem is NTFS, this Linux is actually installed inside windows using wubi so both drives where Linux is installed and where this file is are NTFS.

(I actually have my HD split into 2 partitions only: C-NTFS-48.8GB and D-NTFS-882GB )

Share this post


Link to post
Share on other sites

I've read there are issues with chmod failing silently on NTFS drivers but don't have experience of this. Try posting a question on some Linux forum or google to see if you can find the problem. One way or another you need to get that execute bit set or you won't be able to run the program. I'm sure the Ubuntu forums will have seen this problem and know the exact way to fix it.

Share this post


Link to post
Share on other sites