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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-13-2005, 02:31 PM
|
#1
|
Member
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69
Rep:
|
Get permission to write/delete
Hi everyone,
I have a quick question here -
I have three HDDs one of which is Linux native (my SUSE system) the two other are old windows HDs I use for archives. I have mounted them easly and they work fine, BUT in a user mode ( when not logged as root) I can NOT write/delete anything there. It tells me 'access denied'. Where should I go and what to do to give me as normal user a full access to my HDs?
Preferable relative to SUSE system/YAST2 config ...
Thank you all in advance
it-s
|
|
|
02-13-2005, 03:19 PM
|
#2
|
Member
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289
Rep:
|
What kernel are you running? I'm pretty sure most kernels dont have the ability to write ( writing is also considered a form of deletion) to NTFS partitions by default, you'll only have the ability to read those partitions. You will have to recompile your kernel with the experimental module. Notice I said experimental, the module hasn't been fully released yet and may corrupt your NTFS data and/or partitions. I've never had problems with it and I've been using it for quite some time now. But that is what your problem more than likely is. I'm not familiar with SUSE, so I can't give you advice on how to recompile your kernel. Good Luck.
|
|
|
02-13-2005, 03:24 PM
|
#3
|
Member
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69
Original Poster
Rep:
|
WHUT???
but I can easly do writing/deleting logged as root!!!!!!!!!!!!!!!
come on!!!, there must be a way!!! what kind of operating system is Linux if it can NOT write/modify win partitions!!??? Of course it can, it must be able to, I don't belive it can't
Besides, the HDs I mentioned arn't NTFS, I don't like that format, so I never re-formated them to NTFS, they bouth are Win32
|
|
|
02-13-2005, 03:32 PM
|
#4
|
Member
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289
Rep:
|
First off, theres no such filesystem called Win32. Secondly, I'm trying to help. Thirdly, change the ownerships on the drives to "chmod 777 /mnt/hdx" . If you still can't write, then I'm stumped.
|
|
|
02-13-2005, 03:33 PM
|
#5
|
Member
Registered: Feb 2005
Location: Missouri
Distribution: Archlinux
Posts: 85
Rep:
|
I'm guessing you mounted them as root right, so basicly as a normal user you don't have permission to do anything since it will show up as root has ownership, umount them and mount them with the user you want to beable to read/write to
|
|
|
02-13-2005, 03:39 PM
|
#6
|
Member
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69
Original Poster
Rep:
|
chrisk5527 - sorry I've overreacted
and of course there isn't such thing as Win32 filesystem - there is FAT32 and that's what I was referring to
ak99505 - you are right, but that's the only way to operate YAST (configuration system SUSE uses) i have to be logged as root, othervise that YAST won't work and I have NO idea how to mount without it
|
|
|
02-13-2005, 03:52 PM
|
#7
|
Member
Registered: Feb 2005
Location: Missouri
Distribution: Archlinux
Posts: 85
Rep:
|
Code:
mount -t vfat /dev/hdx /mnt/windows
type that at a terminal that will mount it for you, if it doesn't allow you to do it as a normal user then you'll have to edit your /dev/fstab file so users can mount simple add users to the options for that partition
Code:
/dev/hdc /media/cdrw_dvdrw auto noauto,user,exec,ro 0 0
/dev/sda1 /media/usbdisk vfat noauto,user,exec 0 0
/dev/sdb1 /media/usbdisk2 vfat noauto,user,exec 0 0
as you can see in mine, any user will be able to mount the dvd+rw and 2 usb drives
|
|
|
02-13-2005, 05:13 PM
|
#8
|
Member
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69
Original Poster
Rep:
|
nothing works
I'm able to unmount the HD, but I can't mount it as a user system tells me - 'permission denied, only root do: mount'
May be there is another way... for instance how would you give a user, or a user group a permission to read/write/execute a certain location/partition/HD?
|
|
|
02-13-2005, 05:20 PM
|
#9
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
What does your /etc/fstab look like?
Cheers,
Tink
|
|
|
02-13-2005, 05:25 PM
|
#10
|
Member
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69
Original Poster
Rep:
|
Like so:
fstab
Code:
/dev/hda1 / reiserfs defaults 1 1
/dev/hda6 /home ext3 defaults 1 2
/dev/hda5 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/dvdrecorder /media/dvdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/hdb1 /home/it-s/archive vfat user 0 0
/dev/hdc1 /home/it-s/windows vfat user 0 0
shmfs /dev/shm shm defaults 0 0
hdb1 and hdc1 are the HDs I want to have an access to as user
|
|
|
02-13-2005, 05:31 PM
|
#11
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
/dev/hdb1 /home/it-s/archive vfat user 0 0
/dev/hdc1 /home/it-s/windows vfat user 0 0
|
I'd suggest a modification ...
Code:
/dev/hdb1 /home/it-s/archive vfat users,defaults,rw,uid=<Numerical id of your primary user> 0 0
/dev/hdc1 /home/it-s/windows vfat users,defaults,rw,uid=<Numerical id of your primary user> 0 0
And you could have found that quite easily using the
search on the board ...
Cheers,
Tink
|
|
|
02-15-2005, 09:39 PM
|
#12
|
Member
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69
Original Poster
Rep:
|
It worked!!!
THANK YOU Tinkster, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you......
Huh, I think I'm overreacting again here (way too imotional)
But seriously, thank you for your help and to all the other people who tried to help.
All the best
it-s
|
|
|
02-16-2005, 04:30 AM
|
#13
|
Member
Registered: Feb 2002
Distribution: Gentoo
Posts: 95
Rep:
|
I think you should consider umask option as well, if multiple users are to access it...
|
|
|
All times are GMT -5. The time now is 03:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|