Results 1 to 6 of 6

Thread: Linux is about to come off

  1. #1
    Member registered user
    Join Date
    Jan 2005
    Location
    Oregon
    Posts
    44

    Linux is about to come off

    Okay, let me say that i like linux. I like working in it.

    But its gone too far.

    I can't work. I can't do anything.

    To Work on my files, like say, PHP scripts, under /var/www i have to be root. To IRC, or do anything else, i'd be a fool to do that as root.

    So what the hell? Am i supposed to logout/log back in for each individual task? The bastards in #debian seem to thing chmodding my entire fucking system is a good idea.

    Are they on crack, or what? You shouldn't have to change the goddamn files, you should just be able to change the USER. Give it better permissions, and what not. Why the hell is that so hard?

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510

    Re: Linux is about to come off

    Quote Originally Posted by Shadda
    To Work on my files, like say, PHP scripts, under /var/www i have to be root.
    That should not be true. On Debian, apache is run as user www-data & not a root user. See the 4th line in the httpd.conf file here http://www.splitbrain.org/The_dot-Fi...httpd.conf.cnf. That is the username that owns /var/www/ and you should not need to edit files as root. See this Google search for more info on that.

    So what the hell? Am i supposed to logout/log back in for each individual task?
    Are you aware of a utility called su and sudo? Take the following example: I am in KDE and surfing the web with firefox. I read a webpage that talks of enabling DMA with hdparm. Since hdparm requires root access to enable/disable. Do I then logout as me and then login as root? No, I either su - and become root or I run sudo hdparm -c 1 -d 1 /dev/hda. Thus I have changed my identity temporarily.
    You shouldn't have to change the goddamn files, you should just be able to change the USER. Give it better permissions, and what not. Why the hell is that so hard?
    Exactly. Windows has a "Run as" function for its executables. Linux/Unix has su or sudo & kde has a program called kdesu

  3. #3
    Member registered user
    Join Date
    Jan 2005
    Location
    Oregon
    Posts
    44
    I know all about su and sudo. My point is, if i'm not running something straight from konsole, i shouldn't have to manually add 'sudo' to every program i want to use. It's ridiculous.

  4. #4
    Member registered user
    Join Date
    Jan 2005
    Location
    Oregon
    Posts
    44
    My problem here is, I can't work like that. I can't even start apache without logging in as root, or shut down the computer, or anything. if there were some way to give my user super user permissions, while not actually being root (just, full admin power) that'd solve everything.

  5. #5
    Senior Member registered user
    Join Date
    Oct 2004
    Location
    london town
    Posts
    220
    really the whole chmod thing is for security. i do not mind have the file permission set up as it is. it may be a bit harder but its worth it.

    what i find is much easyer then doing everything in the console as root and with out having to log on to kde as root. i click the k start button go to system and go to the file manage as superuser mode, i find i can do anything i want like this and i dont have to log in and out of the kde.

    enjoy

  6. #6
    Senior Member registered user
    Join Date
    Aug 2003
    Posts
    126
    Stick all your web files under the /var/www directory.
    Then do su
    Then
    chmod -R 777 /var/www
    Then you should be able to edit and test your files as any user. Just be sure to adjust the permissions before putting them out on the web.
    To start apache. Continue logged in as root.
    ksysv
    Clicking the Apache icon should enable you to click a start button.
    By dragging the Apache icon on the left column to start on runlevels 3, 4 and 5 you will ensure Apache starts at boot time.
    Alternatively you can use logos in /etc/skel/Desktop to start processes using commands such as
    sudo /usr/local/bin/startLAMP
    This then executes a bash script such as
    #!/bin/bash

    # Start Apache, MySQL and PHP
    /etc/init.d/apache start
    /etc/init.d/mysql start
    mozilla "http://127.0.0.1/index.php"

    Regards,
    Mark

Similar Threads

  1. Free World Linux, can you help bring Linux to the poor..
    By skitzojase in forum Customising & Remastering
    Replies: 1
    Last Post: 03-06-2006, 07:56 AM
  2. Replies: 2
    Last Post: 12-14-2005, 08:36 AM
  3. Able to dual boot XP and linux but Linux goes to GRUB, help
    By istoleapig in forum Hardware & Booting
    Replies: 2
    Last Post: 02-19-2005, 09:28 AM
  4. New to Linux and need to know how to become disturbum linux
    By ziggyrafiq in forum General Support
    Replies: 0
    Last Post: 09-12-2004, 10:40 PM
  5. Dizinha Linux, New project for "Small" Linux
    By Lame_Duck in forum Customising & Remastering
    Replies: 0
    Last Post: 02-08-2004, 05:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Vintage Industrial micro systems dual 8

Vintage Industrial micro systems dual 8" Floppy disc drive for Altair system

$450.00



Cromemco TU-ART S-100 Serial and Parrallel Board - IMSAI Altair picture

Cromemco TU-ART S-100 Serial and Parrallel Board - IMSAI Altair

$69.95



Cromemco PRI S-100 Printer Interface - Altair IMSAI picture

Cromemco PRI S-100 Printer Interface - Altair IMSAI

$45.00



Rare Solid State Music VB1C Video Interface Display Board S-100 altair Cromemco picture

Rare Solid State Music VB1C Video Interface Display Board S-100 altair Cromemco

$199.95



External Half Height Case For a 5 1/4 Inch Floppy Disk (Altair, IMSAI) picture

External Half Height Case For a 5 1/4 Inch Floppy Disk (Altair, IMSAI)

$49.95



S-100 backplane motherboard bare PCB 9 slot (for Altair/IMSAI) picture

S-100 backplane motherboard bare PCB 9 slot (for Altair/IMSAI)

$34.99



Altair Bread Board  S-100 picture

Altair Bread Board S-100

$79.99



1976 Scelbi 6800 Software Cookbook Altair 680 SWTPC Assembly Language Motorola picture

1976 Scelbi 6800 Software Cookbook Altair 680 SWTPC Assembly Language Motorola

$39.99



MITS Altair 8800 System Full Provenance and Documentation  picture

MITS Altair 8800 System Full Provenance and Documentation

$15000.00



CP/M 86 1.1R 8086 Highmonitor 8 Inch Floppy Diskette 80s IMSAI Altair picture

CP/M 86 1.1R 8086 Highmonitor 8 Inch Floppy Diskette 80s IMSAI Altair

$40.00