LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   how to use my other devices when im not root?? (https://www.linuxquestions.org/questions/slackware-14/how-to-use-my-other-devices-when-im-not-root-77763/)

Kjetil4455 07-31-2003 02:43 PM

how to use my other devices when im not root??
 
when im on root, it all works fine. but when im on my other user, i cant access my other windows partition etc.. nothing in my /mnt/* works... exept the cdrom when i mount it. please help me? some1? i hate being root!

mrhyde 07-31-2003 02:51 PM

Kan du prata Svenska?

Kjetil4455 07-31-2003 02:52 PM

mm
 
a, men jag e inte för god på d... men jag förstår svenska ialfall

mrhyde 07-31-2003 03:22 PM

ok jag tar det pa engelska, as root, add the account name you are using to the root group. this will give you some administration privileges, your English seems very good so I'll recomend this document to you http://www.tldp.org/LDP/intro-linux/html/chap_03.html
This site is the linux documentation project, if you like reading configuration methods, use this site. If you need help post your questions and I'll take you through it.

Just a quick note, when you say devices, do you mean removable media? To access your floppy drive as your user account, type this command at your shell promt " mount /dev/fd0 " then to access your floppy type " cd /mnt/floppy ". Some devices such as the floppy do not automatically mount.

Kjetil4455 08-02-2003 12:41 PM

I know how to mount, and whatever- but; I cant acess my other harddrives... only as root. When im on root, i can see the files on the partitions and everything works fine.. but as my other user, hen i try acess my other harddrives- they look empty. i go on termian promt, i check there with the ls command- cant see anything. i type "su" "*my pw*" and i do ls again, then i can see all my files.. ive tried chmod, chown, nothing works... im very confused.. hehe. im a n00b in slackware

mrhyde 08-02-2003 01:13 PM

Ok, no disrespect meant, it's hard to know some ones level of experience through posts! I'll see if I can emulate your problem and fix it, if I can I'll post the method.

Kjetil4455 08-02-2003 01:23 PM

No offence taken, of cource :) Thanks alot by the way

LinFreak! 08-02-2003 01:35 PM

i had that problem, i edited my /etc/fstab thus:

/dev/hd# /mountpath/hd# vfat noauto,user,exec,rw,nosuid,umask=007 1 0

this makes whoever mounts the hisk as owner :)

Kjetil4455 08-02-2003 04:06 PM

so I basicly add noauto,user,exec,rw,nosuid,umask=007 1 0
after the other shit? or do I have to mount the disk all over agiain on my other user?

LinFreak! 08-02-2003 04:17 PM

er not sure, try it and see. if you are all in group "users" then i don't see why it might cause a problem when changing users.

edit: why not try changing "user" to "users" in fstab, you could always change it back if it isn't recognized!

Kjetil4455 08-02-2003 04:19 PM

aight... :=) anyways, if it wont work- imma try unmount em and mount em back on the other user... cause i read that the one that makes the folder owns the folder:D

LinFreak! 08-02-2003 04:21 PM

yup ;)

Kjetil4455 08-02-2003 04:26 PM

argh, gotta run up to my comp and try it:D

Kjetil4455 08-02-2003 04:54 PM

argh, it dident work... "you nust be root to mount a device" or something like that... other sugestions? :(

At0mic_PC 08-02-2003 05:08 PM

This is what I have in my /etc/fstab

/dev/hda1 /fat-c vfat umask=000, 0 0
/dev/hdb3 /fat-d vfat umask=000, 0 0

Worked for me. You may have to chmod the folder but not sure. errm I'm pretty sure you don't actually because I did not chmod my /fat-c and can access them from my normal user. Also if they are ntfs then you should put that instead of vfat. And also if it is ntfs then you don't want people writing to the drive. I think you can accomplish that in umask but not sure of the values so I'm going to leave that for someone who knows what they are talking about.

Hope this helps.


All times are GMT -5. The time now is 01:04 AM.