LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-08-2004, 04:51 PM   #1
AGilley007
Member
 
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267

Rep: Reputation: 30
Using root


I was using root to transfer some files from windows to linux and not when I log in as user it won't let me play the songs. So is it ok to use root all the time?
 
Old 07-08-2004, 04:59 PM   #2
Fissional
Member
 
Registered: Jul 2004
Location: Harrison Township MI
Distribution: fluxbox-0.9.13 on Slackware 10.2 2.6.15.1 kernel
Posts: 48

Rep: Reputation: 15
you could but many people wouldnt suggest it, and i know i dont, i log in as a user n run x and everything as user. if you copied the music to /root, which...im sure it did, you dont have permission to it as user. You have 2 options here..

Option 1 (the paranoid way): You could log in as user, start x and everything, then open a terminal and su root, then type xmms, and add the music, because then, since xmms is running as root, you can access it.

Thats what i do beacuse i dont like people stealing my music, so everytime i just run xmms as root outa a terminal, loads the list up and plays everything great, but if someone just went on my menu and clicked xmms, nothing would load, and they could never get to it.

But if your not like me (probly not cus thats dumb) you could opt for

Option 2 (more normal way): open a terminal su root, and change the permissions on the music, and then you would be able to use it without being root.
 
Old 07-08-2004, 05:07 PM   #3
AGilley007
Member
 
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267

Original Poster
Rep: Reputation: 30
Ok thanks I but the music in my /home/alan/Music not the /root so I don't know why it would not let me.
 
Old 07-08-2004, 05:10 PM   #4
Fissional
Member
 
Registered: Jul 2004
Location: Harrison Township MI
Distribution: fluxbox-0.9.13 on Slackware 10.2 2.6.15.1 kernel
Posts: 48

Rep: Reputation: 15
hmm...try switching to that directory and typing ls -l that will show you the permissions on all the files. root might still own them since you transfered them as root.
 
Old 07-08-2004, 05:17 PM   #5
taltman
Member
 
Registered: Jun 2004
Posts: 41

Rep: Reputation: 15
Code:
chmod 444 /home/alan/Music/* && chown alan /home/alan/Music/* && chgrp yourgrp /home/alan/Music/*
try running that as root..
replacing yourgrp of course with your group

Last edited by taltman; 07-08-2004 at 05:18 PM.
 
Old 07-08-2004, 06:05 PM   #6
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Actually, you don't want to run xmms as root -- you want to avoid running as many apps as root as possible, especially X apps.

The reason you don't have permission to access them normally, even though they're in your home directory, is because you created them, (by copying them) as root -- files created by root are owned by root.

So a chmod 666 or 444 will work for you. Alternatively, you could create a new group called music or somesuch, and have root or your user be the owner, and the music in the group "music"... That way, only root and members of the group "music" will have read access.

--Shade
 
Old 07-09-2004, 12:31 AM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Due to the fact that there are absolutely no restrictions on what root is permitted to do, running as root as a matter of routine is not advisable at all. All it takes to damage your system beyond repair is to accidentally run the wrong command. Usually you'll realize you made a mistake about 2 milliseconds after you hit the Enter key, and you'll be regretting it during the entire time it takes to reinstall your distro from scratch.

In short, you should always run as a regular user, except in those infrequent and specific situations where you have to be root in order to perform a given task (such as installing new packages). -- J.W.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 08:32 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
cant resize root thru rescue, auto mounts root dir absolutal Linux - Newbie 0 06-18-2003 03:06 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration