Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Linux
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 4th, 2003, 11:15 AM
Registered User
Join Date: Dec 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Permission Denied


I am getting "Permission Denied" message on the Linux console.

This appears whenever I start my Linux machine, this message displays continuously and stops me to do anything.

To get rid of this, what I do is to restart the Linux machine and then on lilo prompt I type "linux single", after typing this all the services started normally but as you know by typing "linux single" the control will then shift to bash prompt.

Please help me in this regard, because I am unable to run my Linux machine in normal mode.

Old December 10th, 2003, 09:49 AM
Friend of Wrox
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts

Can you log in as root?

You'd type su to do this.

If so, you may have to faff with some permissions (have a look at man chmod).

Make sure you have permissions to /bin/bash, and your home directory.

If you can't log in as root, you'll need to reset the root password,like this :

 Press shift key at the boot prompt and enter as, boot: Linux init=/bin/sh

    This causes the system to boot the default linux kernel (with lable as 'linux') and run /bin/sh instead of its standard init. Now you have gained root privileges and a root shell. / is currently mounted read-only and many disk partitions have not been mounted yet.

    # mount -n -t remount,rw /
    # mount -avt nonfs,noproc,nosmbfs
    # cd /etc
    # vi passwd
    # vi shadow

    If the second data field in /etc/passwd is "x" for every username, your system uses shadow passwords, and you must edit /etc/shadow. To disable the root password, edit the second data field in the password file so that it becomes empty. Now the system can be rebooted and you can log on as root without a password.


Charlie Harvey,
IT Officer,
People & Planet.


Don't Stand on your head - you'll get footprints in your hair.

Similar Threads
Thread Thread Starter Forum Replies Last Post
(0x800A0046) Permission denied,not IIS permission! David Hay Classic ASP Basics 3 April 30th, 2006 10:47 PM
fopen permission denied PPGpilot Beginning PHP 1 February 24th, 2006 03:56 PM
Permission denied zah_amir Classic ASP Databases 1 January 24th, 2006 11:45 PM
Permission denied tksarun Classic ASP Components 0 March 11th, 2005 03:01 AM
Permission Denied hamidmq Javascript How-To 2 March 10th, 2005 09:41 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.