LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-26-2005, 03:00 PM   #1
tyrantworm
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Rep: Reputation: 0
linux root vs. win administrator


I recently installed mandrake 10.1 official and have had nothing but trouble with my extenal drives. I have one pen drive and one lacie 20gb drive. It finds the pen drive just fine but the I constantly have to mount the Lacie and then it won't let me writing to it. I have done all I know to give my login permissions to write to everything. then, knoqueror stopped working.

I decided to login as root. everything works fine. my drives load up, i can write to them.

is being in root a big deal. seems like linux frowns on this. Is it really than different than begin logged in as administrator on a win box?

only weirdness in root, no right click menu on desktop and the backspace on my keyboard doesn't backspace when I hold it down. I have to press the backspace button for every deletion i want to make.

thanks for any insights
 
Old 06-26-2005, 03:06 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: linux root vs. win administrator

Quote:
Originally posted by tyrantworm
is being in root a big deal. seems like linux frowns on this. Is it really than different than begin logged in as administrator on a win box?
Actually it's equally stupid in both situations, just
Windows users don't mind as much ;}


Cheers,
Tink
 
Old 06-26-2005, 03:11 PM   #3
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
check your /etc/fstab and make sure you have the 'user' option under opts eg:
Code:
/dev/sda1		/mnt/msd	vfat		noatime,noauto,user	0 0
 
Old 06-26-2005, 03:29 PM   #4
tyrantworm
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Original Poster
Rep: Reputation: 0
dont't have the noatime,noauto piece. it does say user though.

Last edited by tyrantworm; 06-26-2005 at 03:42 PM.
 
Old 06-26-2005, 03:32 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You don't really want noatime in the first place, because
that will stop recording file-access times. It's something
that you'd want on a heavily loaded database server (because
it will somewhat accelerate disk writes) or if you're a
gentoo user (because performance is everything).


Cheers,
Tink
 
Old 06-26-2005, 04:18 PM   #6
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
What filesystem do you have on the devices?
 
Old 06-26-2005, 04:46 PM   #7
tyrantworm
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Original Poster
Rep: Reputation: 0
what do you mean by filesystem? it's fat32. not sure if that is what you are looking for.
 
Old 06-26-2005, 05:13 PM   #8
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
FAT doesn't have any permissions schemes, so when Linux mounts that type of filesystem it has to emulate permissions. Options given in /etc/fstab or to mount on the command-line determine who owns the files and what rights they have. You not being able to write to the device as a normal user can probably be fixed by messing with those settings.

If you mount it manually and the user option is specified in /etc/fstab you should own the files, what does 'ls -ld /mnt/msd' look like after you've mounted it?
 
Old 06-26-2005, 05:15 PM   #9
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by tyrantworm
what do you mean by filesystem? it's fat32. not sure if that is what you are looking for.
You might possibly have to mount the disk with the gid and uid options or with some default permissions because FAT drives don't support file ownerships and permissions in the same way as the unix-type filesystems.
 
Old 06-26-2005, 05:57 PM   #10
tyrantworm
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Original Poster
Rep: Reputation: 0
this is what my fstab looks like:

/dev/hda1 / ext3 defaults 1 1
/dev/hda6 /home ext3 defaults 1 2
/dev/sda1 /mnt/Lacie1 vfat umask=0,user,defaults 0 0
/dev/sda5 /mnt/Lacie2 vfat umask=0,user,defaults 0 0
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,ro,exec,users 0 0
none /mnt/dvd supermount dev=/dev/sr0,fs=auto,ro,exec,--,umask=0,user,iocharset=iso8859-1,codepage=850,users 0 0
/dev/sdb1 /mnt/removable auto umask=0,user,iocharset=iso8859-1,sync,kudzu,codepage=850,noauto,exec,users 0 0
/dev/hdb2 /mnt/win_c vfat umask=0,iocharset=iso8859-1,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0
 
Old 06-26-2005, 06:01 PM   #11
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
tyrantworm,

o answer your original question, no, for you it is not a big deal. for others that maybe have multiple user accounts or have security concerns then yes it is a big deal.

All of your problems are permission based; root just has permission to do everything so all you have to work out is what you need to do as a user and add that in...

found it,

http://www.control-escape.com/linux/lx-filesys.html


Last edited by otchie1; 06-26-2005 at 06:07 PM.
 
Old 06-26-2005, 06:21 PM   #12
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
would you mind logging in as root and giving us the output from
Code:
df -hT
it'll confirm your file-system types for all mounted disks
 
Old 06-26-2005, 07:35 PM   #13
tyrantworm
LQ Newbie
 
Registered: Jun 2005
Posts: 5

Original Poster
Rep: Reputation: 0
i'll need a bit more. i typed in df -hT into a console and it returned that I needed more commands to run this.
 
Old 06-26-2005, 07:59 PM   #14
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by Tinkster
You don't really want noatime in the first place, because
that will stop recording file-access times. It's something
that you'd want on a heavily loaded database server (because
it will somewhat accelerate disk writes) or if you're a
gentoo user (because performance is everything).


Cheers,
Tink
Ignoring the gentoo comment: noatime is also desirable on flash media, because they have a limited lifetime of # of writes. All my compact flash and USB drives (except my enclosure-d disk drive) get mounted noatime: not for performance, but for the sake of not burning them up. If you use a GUI on flash media, every browsing of the directory is seen as a read on ALL files.
 
Old 06-27-2005, 11:19 AM   #15
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
add the noauto option, which will stop it from automounting. I had the same problem when mine mounted at boot time. if the user mounted it manually then all was fine.

Last edited by 0pal_t0ad; 06-27-2005 at 11:24 AM.
 
  


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
Firefox 1.0.7 root administrator responsibility Fedora 4 landonmkelsey Linux - General 2 11-03-2005 10:45 AM
MYSQL - Linux RPM - Administrator? lt_wentoncha SUSE / openSUSE 1 07-04-2005 07:26 PM
remote administrator in linux puru_09 Linux - Software 8 03-21-2004 11:58 AM
how do I log a administrator or root golpemortal Linux - Software 4 09-30-2003 10:42 AM
Only For Network Administrator (Linux Expert) cpinyit Linux - Networking 1 06-29-2001 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:00 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