LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting User and Access Permissions (https://www.linuxquestions.org/questions/linux-newbie-8/setting-user-and-access-permissions-425678/)

crunchyuncle 03-17-2006 05:02 AM

Setting User and Access Permissions
 
I have installed and played a game...with major glitches due to some error of some sort..a buddy of mine recompiled the code for me and sent me the file to replace the original .bin now i am having troubles setting the permissions.
i need to make this where i can execute from root

linux:/home/crunchyuncle/EL # la -ls el.x86.linux.bin
825 -r--rw-r-- 1 crunchyuncle users 841489 Mar 17 02:51 el.x86.linux.bin
linux:/home/crunchyuncle/EL #


ive been going at it for about 6 hours now and cant seem to get it right. the error is my own i just need to know where i need correction


825 -rwxrwxr-x 1 crunchyuncle users 841489 Mar 17 02:51 el.x86.linux.bin
linux:/home/crunchyuncle/EL # chmod -x -c el.x86.linux.bin
mode of `el.x86.linux.bin' changed to 0664 (rw-rw-r--)
linux:/home/crunchyuncle/EL # la -ls el.x86.linux.bin
825 -rw-rw-r-- 1 crunchyuncle users 841489 Mar 17 02:51 el.x86.linux.bin
linux:/home/crunchyuncle/EL # chmod -w el.x86.linux.bin
linux:/home/crunchyuncle/EL # la -ls el.x86.linux.bin
825 -r--rw-r-- 1 crunchyuncle users 841489 Mar 17 02:51 el.x86.linux.bin
linux:/home/crunchyuncle/EL # ./el.x86.linux.bin
-bash: ./el.x86.linux.bin: Permission denied
linux:/home/crunchyuncle/EL # chown [crunchyuncle]:[users0] el.x86.linux.bin
chown: `[crunchyuncle]:[users0]': invalid user


please help

crunchy

muha 03-17-2006 05:53 AM

the last one is incorrect:
Code:

chown crunchyuncle:users0 el.x86.linux.bin
/edit: also, make sure you can execute it:
Code:

chmod +x el.x86.linux.bin
Be sure to exit, to log off user root in your shell and try running the bin as crunchyuncle ..

crunchyuncle 03-17-2006 08:39 AM

i understand the last is incorrect i just dont know how to correct it...how do u declare the owner and user in my case. its right in here that i need clarification

linux:/home/crunchyuncle/EL # chown [crunchyuncle]:[users0] el.x86.linux.bin

i mean is the "[" part incorrect or the names i am using or both? sorry if i ask too much, i just switched fro XP within the week, so this is all still foreign to me

thanks :)

muha 03-17-2006 09:05 AM

just remove the [ ] like so:
Code:

chown crunchyuncle:users0 el.x86.linux.bin
to make sure you are using the right username and usergroup:
Code:

id <username>
So for you probably: id crunchyuncle
Cause i think that you want 'users' instead of 'users0'

/edit:
from rute: http://rute.2038bug.com/node7.html.gz

[ ] brackets in man pages of commands mean that the stuff in between is optional. The brackets are not to be typed.
The ellipses ... mean that <file> can be given repeatedly, and these also are never actually typed.
< > mean the you have to replace your own text with <something>.

crunchyuncle 03-17-2006 12:41 PM

im sorry to bother with this im sure its basic as hell but im still stuck
at this point

-rwxrwxr-x 1 crunchyuncle users 841489 Mar 17 02:51 el.x86.linux.bin
linux:/home/crunchyuncle/EL # ./el.x86.linux.bin
./el.x86.linux.bin: error while loading shared libraries: libopenal.so.0: cannot open shared object file: No such file or directory
linux:/home/crunchyuncle/EL #
-----------------------------------------------------------
at the website for this particular game "Eternal Lands" it says to chmod to 775 which i tried that but i still get this same error.
here:
----------------------------------------------------------
To play in Linux:
Download the zip file, and unzip it.
cd to the directory where you installed it.
chmod to 775 and execute el.x86.linux.bin
edit el.ini and change datadir to where you unzip everything
Also, the zip file has no base directory, so you should unzip it in a new directory you create.

thanks for the help :)

crunchyuncle 03-18-2006 10:52 AM

anyone?
 
anyone? :confused:

btmiller 03-18-2006 01:32 PM

You need the libopenal.so.0 shared library; this has nothing to do with file permissions. The game's Web site should tell you where to get all of the dependencies needed to run the game. Alternatively, a Google search for libopenal should prove fruitful.

crunchyuncle 03-19-2006 12:16 AM

thank you everyone for helping out a newbie works great and in the process ivve learned quite a lot...Linux and lovin it:)

thanks again


All times are GMT -5. The time now is 08:37 PM.