LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-25-2004, 06:49 AM   #1
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
Question WARNING! - NEWBY QUESTION - mounting


ok, why can i not mount unless i am root?
why can i not access the stuff i mounted as root if i'm not root?
 
Old 07-25-2004, 07:01 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
ok, why can i not mount unless i am root?
Because as default, mount use permissions defined in fstab for mount point. If in fstab, the mount point has 'owner' option, only the owner (in general, root) of the concerning device file will be able to mount it. To change this permission you can replace 'owner' by 'user' in your fstab so all users will have access to mount point.

why can i not access the stuff i mounted as root if i'm not root?
Because the permissions are too restrictives (do ls -l the mount point)
 
Old 07-26-2004, 03:56 PM   #3
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
To follow up on keefaz's excellent advice, I always changes the fstab entries for CDs, Floppies, and DVDs to "users" instead of "user". You may not see any difference at all, but I believe that it may make things simpler for you. An example:

User "John" starts up X, mounts a CD, and leaves. User "Bob" comes along to use the computer. He logs "John" out of X and logs himself in. He goes to eject the CD, but can't because it is mounted. He goes to unmount it, but can't because he is not the "user" who mounted it. Fortunately, though, this doesn't ever happen, because the fstab entry is "users", and "Bob" is one of the "users". Hope that makes sense.
 
Old 07-26-2004, 05:17 PM   #4
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
try sudo utilities.

/etc/sudoers

heres a good example

%power ALL = NOPASSWD: /usr/sbin/standby,/usr/sbin/hibernate,/usr/sbin/suspend
this permits group power to standby, hibernate and suspend (scripts of my own)
 
Old 07-27-2004, 01:34 PM   #5
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Original Poster
Rep: Reputation: 30
right, more pressing prob. HOW do i make the drive RW not RO? at boot is says that it won't mount RW coz it is a win2k+ drive. I NEED to right to the drive as windows has ****ed up the file system and i need to restore a file to get it to boot.
 
Old 07-27-2004, 02:07 PM   #6
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
download captive, for fat fat32 and ntfs writting if your kernel doesn't support it

1st, what type is your drive?
2nd check up /etc/fstab

types for windows:
fat (16), fat12 (dos), fat32, skinny (LOL!), ntfs (winXP, New Technology FileSystem)
 
Old 07-27-2004, 02:19 PM   #7
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Original Poster
Rep: Reputation: 30
NTFS XP
 
Old 07-27-2004, 02:22 PM   #8
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
download captive then
you'll need to umount it, then REmount it like this
mount -t captive-ntfs /dev/hda2 /mnt/windows

replace /dev/hda2 with windows2k partition and captive-ntfs with whatever name it was given last release.

Then take a DEEP breath, take your calm and attempt to write,
male backups to be on the safe side
 
Old 07-27-2004, 02:26 PM   #9
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Original Poster
Rep: Reputation: 30
ok, have got cand installed captive...
 
Old 07-27-2004, 02:27 PM   #10
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Original Poster
Rep: Reputation: 30
eh? it sez it is alredy mounted. how do i un-mount it?
 
Old 07-27-2004, 02:44 PM   #11
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
su
umount /mnt/windows
 
  


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
extreme newby question sodaking663rd Slackware 4 08-05-2005 07:29 PM
Some major help for the newby! sir william Linux - Newbie 7 10-05-2004 02:30 PM
Newby install rncurran Linux - Newbie 1 08-16-2004 05:29 PM
Video Card Question (Warning...newbie) zaxtrax Mandriva 4 07-18-2004 11:44 PM
WARNING: Newb Question! (MuLinux & tehnewbeh Linux - Distributions 8 04-14-2004 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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