LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2006, 06:29 AM   #16
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30

Quote:
In regards to question 4, I meant does having write permissions on a directory give you write permissions on all files within as well as giving you permissions to create new files in the directory??
No, you can't modify a file unless you have write permission to that file. But if you have write permission to the directory, then you can "delete" the file. In this sense, a "file" is just a directory entry, so what you are doing is modifying the directory itself, the file is not touched at all so the file permissions are irrelevant.

Of course, a file can have multiple hard links, so you are not necessarily "deleting" the file, you are just removing the link in that directory. The file is only deleted when there are no more links to it (and no program has the file open).

You might want to have a look at The Linux Documentation Project, it has lots of HOWTOs, guides and so on. The System Administrator's Guide will teach you the basic of how the system works.

Last edited by ioerror; 05-02-2006 at 06:39 AM.
 
Old 05-02-2006, 11:27 AM   #17
BinJajer
Member
 
Registered: Sep 2005
Location: Warsaw, Poland
Distribution: Slackware 10.2, Caldera OpenLinux 3.1, Corel Linux (Thanks xhi!), Debian GNU/HURD etc...
Posts: 296
Blog Entries: 1

Rep: Reputation: 30
Aw, why don't I get homework concerning Linux?

All answers can be gathered using google here. And the TLDP.
 
Old 05-03-2006, 12:41 AM   #18
butters88
LQ Newbie
 
Registered: May 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Alright, well after a bit of tinkering around in Fedora along with the advice given here I think I've got a bit of an idea. Could anyone suggest a good distro that I could use at home? I've heard good things about RedHat and Mandrake but I don't know enough about Linux to choose.

Last edited by butters88; 05-03-2006 at 12:51 AM.
 
Old 05-03-2006, 01:38 AM   #19
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,294

Rep: Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358
It really is up to you, but fyi, Fedora (distro) is free from Redhat (company)
 
Old 05-08-2006, 07:08 AM   #20
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,991

Rep: Reputation: Disabled
Quote:
Originally Posted by ioerror
...Anyway, my above post shows that you cannot create hard links to directories. I believe that it was possible with ye olde unix (V6,V7 etc)...
Why then does Novell/SuSE make links like /boot/grub and when you click on it, you get /boot/grub/grub and so on and so forth ... I never understood that. Do you know why?
 
Old 05-08-2006, 08:54 AM   #21
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30
Quote:
Originally Posted by JZL240I-U
Why then does Novell/SuSE make links like /boot/grub and when you click on it, you get /boot/grub/grub and so on and so forth ... I never understood that. Do you know why?
I don't quite follow what you are using to do that but it's certainly not making hard links to directories. Presumably they are symlinks.
 
Old 05-08-2006, 09:07 AM   #22
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,991

Rep: Reputation: Disabled
Yeah symlinks, sorry that was a little unclear. I used Konqueror to click on them. Still, what is the use of them, when all the iterations of /boot/grub -- /boot/grub/grub -- /boot/grub/grub/grub ... ad infinitum just point at /boot/grub ?
 
Old 05-08-2006, 09:49 AM   #23
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30
Well, there's not much point doing that, I'm not sure what Konqueror is doing there but if you don't specify a name for the link, it defaults to the target name, so I assume that's what is happening.
 
Old 05-08-2006, 10:00 AM   #24
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,991

Rep: Reputation: Disabled
It's not me, it's the standard setup of SuSE at least since 6.3. I just can't see the reason for it and I thought you might know what can be accomplished that way, they must do it for a reason...
 
Old 05-08-2006, 10:15 AM   #25
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
If you want to learn linux in a simple, sensible way, try arch

http://www.archlinux.org/

(i'm gonna sound like that dude that promotes Debian every thread :P)
 
Old 05-08-2006, 01:05 PM   #26
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30
Quote:
Originally Posted by JZL240I-U
It's not me, it's the standard setup of SuSE at least since 6.3. I just can't see the reason for it and I thought you might know what can be accomplished that way, they must do it for a reason...
Dunno, sounds pretty pointless to me... ?
 
Old 05-09-2006, 05:45 AM   #27
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Are you saying there is a file called "grub" in the /boot/grub directory, which is a link to /boot/grub ?

Show us - cd into that directory and post the output of ls -l (show us the link).

In general, you will find simlinks just pointing from odd-seeming places for backwards compatibility. This is why you will still find the old XFree86 directories there - many full of links to the xorg directories - even when xfree is no longer used.

You may also find a link /boot/grub/grub.conf pointing to /boot/grub/menue.lst, since these two files do the same thing and, while the distro maintainers may prefer one name, an app may reference the other.

Changing the name or location of a file can be a good idea, but doing so may break other programs. Hence the link from the old place to the new one. (Rather than try to convince several thousand programmers to do the same change see?)

I hope this is coherent.
 
Old 05-09-2006, 06:17 AM   #28
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30
After re-reading the post, I'm now a bit unclear on what exactly he has myself. At first it sounded like recursive links (/boot/grub/grub/grub etc), but this is impossible.
 
Old 05-09-2006, 06:56 AM   #29
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,991

Rep: Reputation: Disabled
Will do that ASAP, now sitting in front of a Winbox .
 
Old 05-10-2006, 08:38 PM   #30
OldSeaDog
LQ Newbie
 
Registered: Apr 2006
Location: Kanata, Ontario, Canada
Distribution: Ubuntu Feisty, SuSE 10.1, Mandriva 2007, etc. in an AMD64X2 4200+, 2GB and an Acer 3000+ 1GB laptop
Posts: 7

Rep: Reputation: 0
Lightbulb Mistake #2

Quote:
Originally Posted by Simon Bridge
Yeah - I know of another mistake in my post ... can you spot it?

I suppose there may be another one, but not all files consist of bytes. An awful lot are bit-based.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
3 Basic Questions From a Newbie - installation locations, working with icons, etc lakshre Linux - Software 4 11-27-2005 03:34 PM
Please answer some basic questions froma daft newbie jmpm Linux - Newbie 7 01-06-2004 06:49 AM
Just a couple Newbie Questions(BASIC KELP) dbarrington Linux - General 7 11-22-2003 01:16 AM
Some Basic Hardware and Software Questions from a Newbie shodekiagari Linux - Newbie 9 11-09-2003 08:50 PM
Newbie Basic linux questions??? rondog Linux - Newbie 1 08-21-2001 07:55 AM


All times are GMT -5. The time now is 10:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration