LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 06-03-2004, 10:44 PM   #1
kougar
LQ Newbie
 
Registered: Jun 2004
Distribution: Mandrake 10 Official
Posts: 8

Rep: Reputation: 0
Write permissions


Installed Mandrake 10.0 Official earlier today, completely new to Linux.
I can view files on my floppy drive, but not write. How can I change permissions to allow me to do so? I don't know much yet, so the furthest I've gotten is looking at permissions under properties, and finding everything grayed out.
I'm not sure what other information is needed. Let me know.
Thanks
 
Old 06-03-2004, 11:19 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
If you are not the owner, and do not belong to a group that can write, you can't write to it at all.

Try to edit your /etc/fstab file (as root) and make the line referring to the floppy look like this:

/dev/fd0 /mnt/floppy auto noauto,users,rw,uid=501,gid=501,fmask=777,umask=0 0 0
 
Old 06-03-2004, 11:23 PM   #3
witeshark
Member
 
Registered: Jan 2004
Location: Miami FL
Distribution: Mac OS X 10.4.11 Ubuntu 12.04 LTS
Posts: 429

Rep: Reputation: 30
And please remember to not be on line as root while making changes
 
Old 06-04-2004, 06:43 AM   #4
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
Am I to understand this to mean that being online, while logged in as root, poses a security threat?

If this is true, is it even true if you're firewalled, but have ports open for http and ssh?

Please advise...
 
Old 06-04-2004, 07:17 AM   #5
smokylux
Member
 
Registered: May 2004
Location: Luxemburg
Distribution: Fedora Core 2, SuSE 9.1 Pro
Posts: 43

Rep: Reputation: 15
In general, being logged as root can be very harmful to your system, as changes (or should I say mistakes) you make have much more consequences, as you have access to everything.

Doing a mistake as normal user won't have too much consequences on your system... so it is always good advice not to be logged in as root unless you have to.


smokylux
 
Old 06-04-2004, 07:35 AM   #6
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
i would normally make changes like that when logged in as a normal user, I would open a terminal window, type "su", enter the password and make the nessecary changes. Type "man su" to see what this does. "man" will tell you alot about any command you wish to try - eg. "man chmod" or "man man" even!
 
Old 06-04-2004, 07:43 AM   #7
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
Sorry, should have clarified...
I understand that you are your own worst enemy when logged in as root, and that you can totally mess up your system if you're not careful. I'm just curious to know whether or not it poses some kind of security threat pertaining to "hackers" and the such on the good 'ole internet, because of the above comment about not making changes, as root, while you're online.

I can't imagine linux would have such a security hole as to give outside access to your system when, and especially when, you're looged in as root. But, I just wanted to make sure...

Thanks,
 
Old 06-04-2004, 07:49 AM   #8
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
It's more to do with being logged in as root rather than using the "su" command. You should never log in as root if you can help it - especially dont log in as root and then "startx"!

edit: you are always logged in as root in ms windows!

Last edited by Tuttle; 06-04-2004 at 07:50 AM.
 
Old 06-04-2004, 08:03 AM   #9
eeried
Member
 
Registered: Jan 2004
Distribution: Xubuntu Dapper - Debian Etch - Puppy Linux
Posts: 136

Rep: Reputation: 15
Quote:
... - especially don't log in as root and then "startx"!
What can happen then, apart from being able to destroy your files or the kernel etc? -- I mean even if you don't get connected to the internet.

Quote:
edit: you are always logged in as root in ms windows!
Quite so! Wonderful windoz, isn't it?

Cheers,
 
Old 06-04-2004, 08:08 AM   #10
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
Not sure, I just know it opens lots of holes! The x server is very complicated, you'd have to ask someone who knows more about these things. Sorry I can't help anymore.
 
Old 06-04-2004, 08:22 AM   #11
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
Quote:
Originally posted by eeried
-- I mean even if you don't get connected to the internet.
Sorry, didnt understand, I dont think it'll harm your system if you are NOT connected to the internet
 
Old 06-04-2004, 10:07 AM   #12
kougar
LQ Newbie
 
Registered: Jun 2004
Distribution: Mandrake 10 Official
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks, bruno buys
I'm still shaky on my feet so far, though.
Here's my current fstab contents:

/dev/hda5 / ext3 noatime 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hda1 /mnt/windows ntfs umask=0,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hda6 /swap vfat umask=0,iocharset=iso8859-1,codepage=850 0 0

The only line I see referencing the floppy is the fourth one, which looks nothing like the substitute you gave me. Is this the one I'm s'posed to replace, or should it be added in as a new line?
Thanks for your continued patience.
 
Old 06-04-2004, 11:12 AM   #13
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Hi kougar,

Yes, this is the line referring the floppy drive. It's a bit more complicated than a standard floppy fstab entry, cause it uses the supermount.. I guess those last parameters try to mount a floppy to use with a win floppy (codepage, etc...).

If you edit this line, and only this one, there will be no harm to your system. You can do it safely. Try to make a few experiments, and see whats the best behaviour you want to have from your system.
Do you know the "coment" practice? Comenting a line would disable it, just like in a GUI you un-tick a box to disable something. Coments are a way to insert human-guided text in scripts or code. The computers ignore those comented lines. Like this:

#! /bin/sh

comand-to-do-something -w -r -t etc...

# comand-to-do-something -w -r -t etc...

The above two lines are the same, except that the first is enabled and the second is disabled by the comment (#) mark.

So, all you have to do is insert a # mark before the line you wanna disabled (the original one in fstab) and insert the new line I gave you. Reboot and check it out.
To revert the system back to the original setup, just insert a # before the new line, and remove the coment of the original one. The parser will parse only uncomented lines.

If the new line makes the system bahave the way you like, that's it. You're done.
 
Old 06-04-2004, 11:43 AM   #14
kougar
LQ Newbie
 
Registered: Jun 2004
Distribution: Mandrake 10 Official
Posts: 8

Original Poster
Rep: Reputation: 0
I program in a couple of languages, so I'm (very much) familiar with commenting. The supermount was throwing me off, and I didn't want to unwittingly do anything to my beautiful Linux installation now that I've finally gotten it up and sort of running.
Thanks for the help.
 
  


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
mandrake write permissions bluknight43 Linux - Software 5 05-14-2005 08:30 AM
'write permissions einstien Linux - General 1 03-28-2005 07:47 AM
write permissions ScottCamp Linux - Newbie 0 10-20-2004 09:13 AM
Write permissions nuttiernu Linux - General 4 02-03-2003 08:04 AM
vfat write permissions andrea.corelli Linux - General 4 04-23-2002 02:43 AM


All times are GMT -5. The time now is 04:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration