-
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?
-
Senior Member
registered user
Re: Linux is about to come off

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
-
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.
-
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.
-
Senior Member
registered user
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
-
Senior Member
registered user
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
-
By skitzojase in forum Customising & Remastering
Replies: 1
Last Post: 03-06-2006, 07:56 AM
-
By Jakykong in forum The Lounge
Replies: 2
Last Post: 12-14-2005, 08:36 AM
-
By istoleapig in forum Hardware & Booting
Replies: 2
Last Post: 02-19-2005, 09:28 AM
-
By ziggyrafiq in forum General Support
Replies: 0
Last Post: 09-12-2004, 10:40 PM
-
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
-
Forum Rules

Dell PowerEdge R640 1U 8SFF Server Barebones 2x Gold 5120 64GB H330 2x 750w
$538.88

Windows Server 2025 datacenter 64bit 24 Core 50 cal DVD + PRODUCT LICENSE KEY
$44.54

MICROSOFT WINDOWS SERVER 2025 RDS 50 CAL NEW Factory Sealed
$136.87

Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server
$349.99

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p
$499.88

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$484.99

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO
$308.00

Dell PowerEdge R640 1U 8SFF Server Barebones 2x Gold 6150 64GB 2x 750w
$218.88

Windows Server 2025 Standard Edition - 24 Core License
$238.00

Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed
$41.19