Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > PC Technology Zone > Linux, BSD, other *nixes & Open Source Software » File ownership.... how to figure out who to assign to...
Closed Thread
Old 10-17-2007, 04:22 AM   #1 (permalink)
Ethereal_Dragon's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Bolingbrook, IL - USA

Posts: 3,604

Ethereal_Dragon will become famous soon enough

Send a message via AIM to Ethereal_Dragon Send a message via Yahoo to Ethereal_Dragon
Default File ownership.... how to figure out who to assign to...

Ok, I have googled this, and the only thing I seem to be getting in return is how to use the chmod, chown, and chgrp commands.

Basically, I am trying to figure out who to give ownership to some directories to, or if I should leave them as 'nobody'.... Also, some have group assignments to "501".... not sure who that is.

/mnt/HD_a2 # ls -l
dr-xr-xr-x 4 root root 4096 Oct 14 17:04 Anonymous FTP
drwxrwxr-x 7 root Admin 4096 Oct 17 00:35 Data
drwxrwxrwx 2 root Admin 4096 Oct 15 01:19 FTP
-rwxrwxrwx 1 nobody 501 1181 Apr 25 23:15 fun_plug
drwxr-xr-x 6 root root 4096 Apr 25 23:30 fun_plug.d
drwxrwxrwx 3 nobody 501 4096 Apr 26 00:09 lnx_bin
drwxrwxrwx 5 nobody 501 4096 Apr 26 03:07 www

Anonymous FTP - Directory for external & internal Anonymous FTP users. I assigned ownership of this to root.
Data - Stored data for LAN users mostly, and my occaisional remote use (from work mostly)
FTP - Not set up yet, but this will be the directory for the users with passwords to the server.
fun_plug is a file necessary to add functionality to my DNS-323, such as telnet access, and the web server. The script is executed when the system boots.
fun_plug.d & lnx_bin are used for add-ons to the NAS box. Only thing in there is other scripts, and other components for the linux OS to run (Daemons I think they are called??)

Lastly, the www directory is for the webpage hosted in the box, and only get accessed though http, unless I am FTP'd to the box to edit the page from work.....

Just wondering if anyone can shed some light on this for me.... Thanks guys, gotta run, have already dozed off 4 times while typing this... leaving a whole line of e's all the way across the screen.
__________________
Gaming Rig: - GIGABYTE GA-X38-DQ6, Intel Q9550 @ 2.83 Ghz, TRUE (MX-2 & 2 Scythe SFF21D),
Crucial Ballistix 4GB DDR 800, XFX Radeon HD 4870, SILVERSTONE ST70F,
4x Seagate 7200.11 ST3500320AS 500 GB, ASUS DRW-2014L1T, Antec 900
Dell 2709W - 27" Monitor & Sony SDM-HS95P - 19" Monitor
The NAS Box: D-Link DNS-323 & 2x Seagate 7200.10 ST3500630AS 500GB - JBOD



| My Antec 900 Build Log | Project Pink | Operation Home Run |
| General Forum Rules | Networking FAQs & Tutorials | Hardware Tutorials |
Ethereal_Dragon is offline  
Old 10-21-2007, 02:34 AM   #2 (permalink)
simple's Avatar
 
True Techie

Join Date: Jan 2006

Location: Earth

Posts: 171

simple

Default Re: File ownership.... how to figure out who to assign to...

could you be more specific as to what exaactly you want and "why" you want it. There may be different ways of doing a same thing...
c ya!!
__________________
<A HREF=http://ubanimator.com><IMG SRC=http://img182.imageshack.us/img182/5168/userbar511415cb2.gif><A>
simple is offline  
Old 10-21-2007, 02:45 AM   #3 (permalink)
Ethereal_Dragon's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Bolingbrook, IL - USA

Posts: 3,604

Ethereal_Dragon will become famous soon enough

Send a message via AIM to Ethereal_Dragon Send a message via Yahoo to Ethereal_Dragon
Default Re: File ownership.... how to figure out who to assign to...

Hey, thanks for the reply. Well, I am sort of a *nix n00b.

I am basically trying to figure out if I should leave the lnx_bin & www directories as owned by "nobody", or if I should chown them to root, or an Admin or something....

As described, the www directory is for a webpage that is hosted on the box.
The lnx_bin is a folder that the fun_plug file runs scripts from during boot up of the box. Keep in mind, this isn't a PC, it is a D-Link NAS box, with limited functionality, which is what the fun_plug is for. When the box boots, it looks for the fun_plug file, and if it is present, it executes it. That file starts the telnet access for me, and also the web server on the box (neither are part of the firware).

As for the WHY, I am just trying to figure out if it is 'safe' to leave a file owned by no one, or if it is better to give it an owner...
__________________
Gaming Rig: - GIGABYTE GA-X38-DQ6, Intel Q9550 @ 2.83 Ghz, TRUE (MX-2 & 2 Scythe SFF21D),
Crucial Ballistix 4GB DDR 800, XFX Radeon HD 4870, SILVERSTONE ST70F,
4x Seagate 7200.11 ST3500320AS 500 GB, ASUS DRW-2014L1T, Antec 900
Dell 2709W - 27" Monitor & Sony SDM-HS95P - 19" Monitor
The NAS Box: D-Link DNS-323 & 2x Seagate 7200.10 ST3500630AS 500GB - JBOD



| My Antec 900 Build Log | Project Pink | Operation Home Run |
| General Forum Rules | Networking FAQs & Tutorials | Hardware Tutorials |
Ethereal_Dragon is offline  
 
Closed Thread

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
WTF is a Bad Block? MikesCreation Hardware Troubleshooting 18 02-24-2008 09:31 PM
Hard Drive Errors!!! Bad or Faulty HDD? mike4realz Hardware Troubleshooting 3 09-19-2007 01:56 AM
seagate 80gigs failing.. acuariano Hardware Troubleshooting 27 08-27-2007 10:43 PM
My log Max Power HijackThis Logs (finished) 4 08-23-2007 08:55 AM
Another Hijack Log boo HijackThis Logs (finished) 17 06-26-2007 12:30 PM