Permission denied

Discuss general troubleshooting concerns.

Moderators: scrumpy, Dave, leihog

Permission denied

Postby Admiral Spockz on Tue Aug 22, 2006 6:03 pm

Greetings,

I hesitated about putting this topic here or in Installation troubles.

The matter is, I finished installation and noticed an error in the Ip-address. I corrected it in the console after which I could log in at the webpanel. After filling out the forms the server rebooted and there it was. The server wasn't reachable anymore. I could log in at the console with the newly set password.

However. I get a permission denied on al directories, and on ip, ifconfig. Even the attempt to su did fail.

Does anyone know what's going on here?
Admiral Spockz
 
Posts: 11
Joined: Tue Aug 22, 2006 5:58 pm

Re: Permission denied

Postby vciaglia on Wed Aug 23, 2006 3:20 am

Admiral Spockz wrote:However. I get a permission denied on al directories, and on ip, ifconfig. Even the attempt to su did fail.

Does anyone know what's going on here?


When you login and insert your password type "newrole -r sysadm_r" and then your root password to be the "administrator/root" user. That's SeLinux.
vciaglia
 
Posts: 60
Joined: Wed Jun 14, 2006 4:32 pm
Location: Italy

RE: Permission denied

Postby Admiral Spockz on Wed Aug 23, 2006 3:29 am

Ah, that's why. Booting in standard mode did solve the problem, is it that SElinux is disabled when booting in standard mode?
Admiral Spockz
 
Posts: 11
Joined: Tue Aug 22, 2006 5:58 pm

Re: RE: Permission denied

Postby vciaglia on Wed Aug 23, 2006 3:30 am

Admiral Spockz wrote:Ah, that's why. Booting in standard mode did solve the problem, is it that SElinux is disabled when booting in standard mode?


Yes.
vciaglia
 
Posts: 60
Joined: Wed Jun 14, 2006 4:32 pm
Location: Italy

RE: Permission denied

Postby Admiral Spockz on Wed Aug 23, 2006 3:34 am

It still isn't working.

[root@engarde "]# newrole -r sysadm_r
Authenticating root
Password:

Then I write the password, it shows nothing. And permissions are still denied.
Admiral Spockz
 
Posts: 11
Joined: Tue Aug 22, 2006 5:58 pm

Re: RE: Permission denied

Postby vciaglia on Wed Aug 23, 2006 3:40 am

Admiral Spockz wrote:It still isn't working.

[root@engarde "]# newrole -r sysadm_r
Authenticating root
Password:

Then I write the password, it shows nothing. And permissions are still denied.


Have you inserted the "root" password? Try again.
vciaglia
 
Posts: 60
Joined: Wed Jun 14, 2006 4:32 pm
Location: Italy

RE: Permission denied

Postby Admiral Spockz on Wed Aug 23, 2006 3:41 am

Yes, the root password which I used to login. Which is the same as set at the installation by the webpanel.
Admiral Spockz
 
Posts: 11
Joined: Tue Aug 22, 2006 5:58 pm

Re: RE: Permission denied

Postby vciaglia on Wed Aug 23, 2006 4:07 am

Admiral Spockz wrote:Yes, the root password which I used to login. Which is the same as set at the installation by the webpanel.


You have to follow this procedure to change the root password: http://www.engardelinux.org/doc/guides/ ... nfig.shtml

If you login directly as the root user, you may default to staff_r and still need to run newrole -r sysadm_r before doing many system others administration tasks.

Anyway take a look here too: http://www.engardelinux.org/doc/guides/ ... inux.shtml
vciaglia
 
Posts: 60
Joined: Wed Jun 14, 2006 4:32 pm
Location: Italy

RE: Permission denied

Postby Admiral Spockz on Wed Aug 23, 2006 4:14 am

The password is changed already and is no longer lockbox.
Admiral Spockz
 
Posts: 11
Joined: Tue Aug 22, 2006 5:58 pm

Re: RE: Permission denied

Postby vciaglia on Wed Aug 23, 2006 4:20 am

Admiral Spockz wrote:The password is changed already and is no longer lockbox.


Well, login as root to your machine locally or through ssh, Once you're on to transition over to sysadm_r, run:

Code: Select all
newrole -r sysadm_r


The root password is your root password.
vciaglia
 
Posts: 60
Joined: Wed Jun 14, 2006 4:32 pm
Location: Italy

RE: Permission denied

Postby Admiral Spockz on Wed Aug 23, 2006 4:21 am

This is exactly what I did above. There is no change whatsoever.
Admiral Spockz
 
Posts: 11
Joined: Tue Aug 22, 2006 5:58 pm

Re: RE: Permission denied

Postby vciaglia on Wed Aug 23, 2006 4:23 am

Admiral Spockz wrote:This is exactly what I did above. There is no change whatsoever.


Still booting in standard mode ? Switch to secure mode.
vciaglia
 
Posts: 60
Joined: Wed Jun 14, 2006 4:32 pm
Location: Italy

RE: Permission denied

Postby Admiral Spockz on Wed Aug 23, 2006 4:24 am

While booted in secure mode. ;)
Admiral Spockz
 
Posts: 11
Joined: Tue Aug 22, 2006 5:58 pm

Re: RE: Permission denied

Postby vciaglia on Wed Aug 23, 2006 4:26 am

Admiral Spockz wrote:While booted in secure mode. ;)


Let we know.
vciaglia
 
Posts: 60
Joined: Wed Jun 14, 2006 4:32 pm
Location: Italy

RE: Permission denied

Postby Admiral Spockz on Wed Aug 23, 2006 4:28 am

Should I be booted in standard mode I wouldn't 'still' get the errors.

So, booting in secure mode and executing the commands above changes nothing.
Admiral Spockz
 
Posts: 11
Joined: Tue Aug 22, 2006 5:58 pm

Next

Return to General Troubleshooting

Who is online

Users browsing this forum: No registered users and 3 guests

cron