LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   root access missing in dsl.....help (https://www.linuxquestions.org/questions/linux-newbie-8/root-access-missing-in-dsl-help-621902/)

East 02-17-2008 11:16 PM

root access missing in dsl.....help
 
hi all
I have booted my system with DSL. I have changed the GUI. (ie) instead of loading the default the GUI, i am running an exe. I changed the file called .xinitrc with the exe name. The exe is executed successfully when the system default runlevel is 5. If any errors occurs in the exe, then showing some error respect to the exe and getting into the non user prompt named with dsl ( i havnt created the user, may be this is default). Now i want to provide the root Privileges to the dsl user.
can anyone help me how to provide the root privileges to a non user?

Simon Bridge 02-17-2008 11:37 PM

Quote:

i am running an exe
wha-a-at? Not a .exe file, obviously, but please for the love of the gods do tell us which executable you run!

Quote:

I changed the file called .xinitrc with the exe name.
Well change it back! This is not how you do things!

Anyway, all it does is start the x session. But really, there are standard approaches for changing the desktop in DSL.

Quote:

getting into the non user prompt named with dsl
The default user is called "dsl" yes. So your install is configured to boot to a set user instead of a login screen.

Quote:

Now i want to provide the root Privileges to the dsl user.
You don't. You make a separate administration user, or you give one normal user sudo access. You do not make the default user root!

Probably the default user has sudo access anyway... have you tried?
If he dosn't, add him to the wheel group and edit the sudoers file.

<pant>
I need to go lie down.

East 02-18-2008 12:20 AM

Quote:

Originally Posted by Simon Bridge (Post 3060948)
wha-a-at? Not a .exe file, obviously, but please for the love of the gods do tell us which executable you run!

I am running a gtk based usbview application.

Quote:

Originally Posted by Simon Bridge (Post 3060948)
The default user is called "dsl" yes. So your install is configured to boot to a set user instead of a login screen.

If the default user is dsl, then cant i run any application from here?
Because when i was trying to run an application saying as permission denied. when i type "su" , it's asking for password.i dont know what to give
Quote:

Originally Posted by Simon Bridge (Post 3060948)
You don't. You make a separate administration user, or you give one normal user sudo access. You do not make the default user root!

can u please elaborate how to create a admin user?

Simon Bridge 02-18-2008 05:29 AM

Quote:

instead of loading the default the GUI, i am running ... a gtk based usbview application.
http://www.kroah.com/linux/usb/
... I don't understand how you can use usbview instead of the "default GUI"?

Quote:

If the default user is dsl, then cant i run any application from here?
No... of course not. Otherwise the default user would be root and that is A Bad Thing.

As the DSL user, do you have a graphical desktop at all?
(I don't understand your setup, but it sounds broken.)

Can you run regular commands like:
echo "hello world"
... from a terminal?

East 02-24-2008 10:54 PM

Hi all

I am using DSL 4.2.5 version. I want to upgrade the kernel version. but i cant compile the kernel in DSL.How can i get the kernel version 2.6.x in DSL. Is there anything new release of DSL.Can anyone help me to find out the way?

Thanks in advance.

Simon Bridge 02-25-2008 06:36 AM

Have you checked the FAQ?
Have you checked the wiki?

Have you read this - with reference to the previous posts? Or this.

So... how did your last problem work out for you?

East 02-25-2008 08:14 AM

For the previous problem, i used sudo to run the application from non root user and thanks for the link which you provided.

Simon Bridge 02-25-2008 10:43 PM

Please reply to the first two questions in post #6.

If you want to install a vanilla kernel, you will first need to install the programming tools... gcc, et al. But it sounds to me like you really need to be using Debian.

Mind you, you could always try installing a debian kernel...
http://damnsmalllinux.org/cgi-bin/fo...t;f=12;t=19783

East 02-26-2008 03:25 AM

Thanks simon.
Both links were useful. It seems i have to download individual packages using apt-get install. So i will download the gcc package and will try installing it.


All times are GMT -5. The time now is 08:30 AM.