Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
User Problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
newky2000
n00b
n00b


Joined: 13 Jan 2003
Posts: 36

PostPosted: Fri Jan 31, 2003 6:51 pm    Post subject: User Problems Reply with quote

Hi I'm havin a few problems

When I create a new user(including them in user,audio,wheel groups) i find that I can't do the following:

1)access my hardrives, including the window ntfs ones(which work in root)
2)play dvd's in xine
3)access any drives though konqueror that I mount with su.

Can you please help as I'm getting fed up of logging in everytime I boot the computer and having to run in root just to get it all to work.

Thanks
Back to top
View user's profile Send private message
Hysteric
n00b
n00b


Joined: 31 Jan 2003
Posts: 46
Location: Québec

PostPosted: Fri Jan 31, 2003 6:56 pm    Post subject: Group Reply with quote

There should be a group that permit the user to access the drives, but I can't tell you which one... you should look for that group tho...
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Jan 31, 2003 7:15 pm    Post subject: Reply with quote

The answer to this depends on the filesystem types. For Windowsy things, see UN2: Mounting MS Windows partitions (FAT,NTFS). For others, mount the filesystem and then use chown/chmod on the mount point.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Delphiki
Guru
Guru


Joined: 04 Oct 2002
Posts: 337
Location: A2

PostPosted: Fri Jan 31, 2003 7:44 pm    Post subject: Reply with quote

if you add the user flag in fstab, i.e.

/dev/sda2 /mnt/ipod vfat users 0 0

then you can mount them with any user, so you don't need to su to mount them, though if you mount them as root normal users won't have access. This is what I do for my cdrw, dvd and ipod.
_________________
Excellent..
Back to top
View user's profile Send private message
newky2000
n00b
n00b


Joined: 13 Jan 2003
Posts: 36

PostPosted: Fri Jan 31, 2003 8:17 pm    Post subject: Reply with quote

will this work even if the "/mnt/" folder is root only?
Back to top
View user's profile Send private message
Delphiki
Guru
Guru


Joined: 04 Oct 2002
Posts: 337
Location: A2

PostPosted: Fri Jan 31, 2003 8:34 pm    Post subject: Reply with quote

Users have to have x bit set on /mnt, but they don't need write access to /mnt.
_________________
Excellent..
Back to top
View user's profile Send private message
newky2000
n00b
n00b


Joined: 13 Jan 2003
Posts: 36

PostPosted: Fri Jan 31, 2003 8:40 pm    Post subject: Reply with quote

I tried this but mount complained of errors in the /etc/fstab
Delphiki wrote:
if you add the user flag in fstab, i.e.

/dev/sda2 /mnt/ipod vfat users 0 0

then you can mount them with any user, so you don't need to su to mount them, though if you mount them as root normal users won't have access. This is what I do for my cdrw, dvd and ipod.
Back to top
View user's profile Send private message
Delphiki
Guru
Guru


Joined: 04 Oct 2002
Posts: 337
Location: A2

PostPosted: Fri Jan 31, 2003 8:43 pm    Post subject: Reply with quote

What was the line you had in fstab?
_________________
Excellent..
Back to top
View user's profile Send private message
newky2000
n00b
n00b


Joined: 13 Jan 2003
Posts: 36

PostPosted: Fri Jan 31, 2003 8:53 pm    Post subject: Reply with quote

I'm new to linux and am finding this a bit hard going.

I'm mounting /dev/hda1 to /mnt/win2k.

I've tried mounting it to a new folder that I created in the home folder of one of the users but it then showed a lock and said I didn't have enough permissions to access it.

I'd like just to automatically boot into root(I know the implications of this) but kde login manager will not allow me to select root for autologin.
Back to top
View user's profile Send private message
Delphiki
Guru
Guru


Joined: 04 Oct 2002
Posts: 337
Location: A2

PostPosted: Fri Jan 31, 2003 8:58 pm    Post subject: Reply with quote

Read the thread that rac posted to learn how to mount an ntfs partition. If it's a vfat partition you should be able to just moutn it using the line I posted except changing /mnt/ipod to wherever you want it and changing /dev/sda2 to /dev/hda1.
_________________
Excellent..
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20097

PostPosted: Fri Jan 31, 2003 10:06 pm    Post subject: Reply with quote

Moved from Desktop Environments.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
newky2000
n00b
n00b


Joined: 13 Jan 2003
Posts: 36

PostPosted: Sat Feb 01, 2003 10:59 am    Post subject: Reply with quote

I've now made it so that I can look at mounted devices now as a non-root user but I can't umount or remount them. It says only "root can mount XXX" This makes ejecting cd's a pain in the arse.

Any ideas?
Back to top
View user's profile Send private message
fifo
Guru
Guru


Joined: 14 Jan 2003
Posts: 437

PostPosted: Sun Feb 02, 2003 1:01 am    Post subject: Reply with quote

If you put the "user" option in your fstab then ordinary users should be able to mount/umount (though not remount):
Code:

/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         user,noauto,ro          0 0
Back to top
View user's profile Send private message
newky2000
n00b
n00b


Joined: 13 Jan 2003
Posts: 36

PostPosted: Sun Feb 02, 2003 12:06 pm    Post subject: Reply with quote

brilliant , thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum