Author Topic: I NEED HELP!  (Read 2220 times)

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
I NEED HELP!
« Reply #15 on: 18 March 2002, 07:47 »
okay... what the hell is going on?
my clock jumps back, only in hours, when i'm not looking!!
it said 10:30 i turned my back to put on a tape, looked back and it says 5:30.
whats wrong????
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
I NEED HELP!
« Reply #16 on: 18 March 2002, 21:02 »
Uh, been dropping acid again? Or maybe a close encounter, in reverse?  Usually only a second passes in earth time when days can pass on the alien vessel.  

[ March 18, 2002: Message edited by: VoidMain ]

Someone please remove this account. Thanks...

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
I NEED HELP!
« Reply #17 on: 18 March 2002, 14:02 »
wow! i could never be bothered to use the computer if i had dropped acid! well done, you must have a staunch brain indeed!

I used to find that there was a windows/linux clock problem, are you dual booting? i think i fixed it by telling linux to get the time directly from the bios...

if you aren't dual booting in between the clock changing around then i haven't a clue what's up, but tell me where you got that acid from will you?
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
I NEED HELP!
« Reply #18 on: 18 March 2002, 14:04 »
quote:
Anti-Ms said:
I got this from a book so I'd trust it.

i just liked this line so much i had to quote it!
Isn't it odd how a lot of people trust anything that's written in a book, just because it has been written in a book?

Anti-MS, i am not trying to pick a fight, i know exactly what you meant, but i just thought the wording was a little amusing!   :D
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
I NEED HELP!
« Reply #19 on: 19 March 2002, 01:10 »
i think my computer IS on acid (i gotta find out where it keeps its stash)

the archiver program just displays a whole bunch of odd symbols (not unlike encryption) when i open a certain file, its the unreal tournament demo.
it worked once to open it, the next time i tried, it did the screwed up shit. has anyone else had this type of problem?

 
quote:
Anti-Ms said:
I got this from a book so I'd trust it.  

i got a book here, and i dont trust it one bit. (i think it got into my computers stash of acid)

[ March 18, 2002: Message edited by: Druaga ]

Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
I NEED HELP!
« Reply #20 on: 19 March 2002, 05:23 »
The book wasn't titled "VoidMain's Registry Tricks for Dummies" was it?
Someone please remove this account. Thanks...

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
I NEED HELP!
« Reply #21 on: 19 March 2002, 05:56 »
i dont think i would be using a book on the registry, if i'm using linux....i think its called "the acid linux revolution"
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
I NEED HELP!
« Reply #22 on: 19 March 2002, 07:14 »
this book i have explains permissions, but doesnt tell me the command to change permissions.
It tells me that after the command i use things like: dr-x----.
so, what is the command for setting user permissions?
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
I NEED HELP!
« Reply #23 on: 19 March 2002, 07:32 »
The command is "chmod" (see: man chmod). You can also do it from the Konqueror file manager (right click->properties->permissions), although I don't believe I have *ever* used konqueror to change file permissions.     If you have any questions about chmod or are confused by the man page I can describe it in detail that may help you understand it a little better.  Sometimes the man pages are a little light.
Someone please remove this account. Thanks...

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
I NEED HELP!
« Reply #24 on: 19 March 2002, 13:25 »
VoidMain, maybe that permissions thing you are thinking of posting for us newbies could be submitted as a feature article when you get round to it?
I am still a little shaky on permissions (although your reply was very informative last time i asked about it), and i think a lot of new linuxers will want to read your proposed article, so maybe it should be a feature article rather than get lost in the backlog swamp of the forums after a couple of weeks...
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
I NEED HELP!
« Reply #25 on: 20 March 2002, 04:37 »
Well, like most UNIX people, I'm lazy so here are a few articles that look to get the basics down:

For basic file permissions and octal representations but not including special attributes or ACLS:
http://www.perlfect.com/articles/chmod.shtml
http://www.mast.queensu.ca/~mastop/Unix/access-control.shtml
http://www.webmastervault.com/tip-chmod.shtml

The above links only cover 3 of the 4 octal numbers regarding permissions that can be changed with "chmod".  They only talk about the rwxrwxrwx portion. Well there is a 4th bit that controls whether the file is SUID/SGID and the "sticky" bit.  And if you used octal notation this bit is actually the first of 4 numbers you would pass to "chmod" rather than the typical 3 numbers:

Normally to set a normal file rwxrwxrwx you would do either a "chmod a+rwx filename.dat" or in octal it would be "chmod 777 filename.dat".  If you add the 4th octal it would be "chmod 0777 filename.dat" to get the same permissions.  The first octal actually controls SUID and SGID. The same example above but with the "SUID" bit turned on in octal would be "chmod 4777 filename.dat", or "chmod u+s filename.dat" to add the SUID bit. I would have to strongly urge that you *NEVER* have a file with 4777 permissions. 4755 is common but 4777 would allow anyone to change the file and then execute it as the owner of the file (good trojan). However, Linux and hopefully other OSs will turn off the SUID bit after another person edits the file.

SUID means that when the file is run it will run with the permissions of the user that owns the file, no matter who executes it.  Some *NIXs only allow the SUID on binary files but many allow it on scripts as well.  The SGID bit means that when the program is run it will run and have the same rights as the group associated with the file, regardless of if the user running the program belongs to the group or not. The "sticky" bit is for directories. When you set a directory with permissions "1777" which means everyone has read/write/execute permissions to that directory and anyone can create files in that directory but only people who can delete a file from that directory are the owner of the file, the owner of the directory and "root". /tmp is set with the sticky bit on. It shows up with a "t" in the end of the permissions "drwxrwxrwt".

See http://www.cs.umass.edu/rcfbbl/bbl_security_050395_utils.html

Another thing that I don't believe I saw mentioned in the above links is the fact that directories must be set "executable" (or have the "x" bit turned on) in order to be able to change into those directories (all parent directories above it must also be set executable). This is just a side note that can bite n00bies.

Now, ACLs (or Access Control Lists) allow restrictions or allowances on a file or directory above and beyond the basic UNIX (chmod) capabilities. For instance, you may want to make a directory owned by a particular user, and assign it to a specific group and give permissions to only the owner and group and no permissions for anyone else.

Say the /var/www/develop directory is owned by root and is assigned to the "www" group (chown root:www /var/www/develop). You have all of your web developers in the "www" group and they all must be able to change or add files to that directory but you want no one else messing with it. The directory would look like this:

drwxrwx--- root www size date time /var/www/develop

Now say you wanted to add user "joe" to this directory but not give him access to all of the other directories that the "www" group has access to. You can't add him to the "www" group and you don't want to have to create an entire other group just for this directory.  Here's where ACLs come in.  You can give it the above permissions, and add "rwx" for user "joe" and "r-x" for user "sally", etc, using the ACL editing tools.

Now most Linux distros do not come with ACL support, in fact I know of none, but they will be coming with it in the future.  For now, you can download the ACL patch and the appropriate Kernel source and apply the patches, compile the kernel and install it.  You'll also need the ACL modified fileutils and other packages.

See http://acl.bestbits.at/

I've applied the above patch and it works well, it even allows me to use NT domain users and extended ACL permissions on my files and shares that I have shared to windows machines using Samba.

This is "most" of what there is to know about file permissions but there is more. If you want to get into special files like pipes, sockets, etc, or if you wonder what the first letter you see in the permissions mean like "-","b","c","d","l", etc (as in "brw-rw---- root disk" on /dev/hda) I would surely be happy to discuss. And of course we did not discuss recursively changing permissions and the implications...

Have fun...

[ March 19, 2002: Message edited by: VoidMain ]

Someone please remove this account. Thanks...