LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-13-2005, 02:31 PM   #1
it-s
Member
 
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69

Rep: Reputation: 15
Question 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
 
Old 02-13-2005, 03:19 PM   #2
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
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.
 
Old 02-13-2005, 03:24 PM   #3
it-s
Member
 
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69

Original Poster
Rep: Reputation: 15
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
 
Old 02-13-2005, 03:32 PM   #4
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
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.
 
Old 02-13-2005, 03:33 PM   #5
ak99505
Member
 
Registered: Feb 2005
Location: Missouri
Distribution: Archlinux
Posts: 85

Rep: Reputation: 17
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
 
Old 02-13-2005, 03:39 PM   #6
it-s
Member
 
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69

Original Poster
Rep: Reputation: 15
Smile

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
 
Old 02-13-2005, 03:52 PM   #7
ak99505
Member
 
Registered: Feb 2005
Location: Missouri
Distribution: Archlinux
Posts: 85

Rep: Reputation: 17
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
 
Old 02-13-2005, 05:13 PM   #8
it-s
Member
 
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69

Original Poster
Rep: Reputation: 15
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?
 
Old 02-13-2005, 05:20 PM   #9
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
What does your /etc/fstab look like?


Cheers,
Tink
 
Old 02-13-2005, 05:25 PM   #10
it-s
Member
 
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69

Original Poster
Rep: Reputation: 15
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
 
Old 02-13-2005, 05:31 PM   #11
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
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
 
Old 02-15-2005, 09:39 PM   #12
it-s
Member
 
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69

Original Poster
Rep: Reputation: 15
Thumbs up

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
 
Old 02-16-2005, 04:30 AM   #13
mathfeel
Member
 
Registered: Feb 2002
Distribution: Gentoo
Posts: 95

Rep: Reputation: 15
I think you should consider umask option as well, if multiple users are to access it...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Permission Denied when trying to delete /var robintw Linux - General 4 09-17-2005 02:00 PM
NTFS write and delete...... AzuuAz Linux - Software 3 11-26-2004 03:38 AM
Ownership/Permission and Delete Syntax MadDogE134 Linux - Newbie 8 06-09-2004 06:05 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 02:46 AM
How do I give users read but not delete permission suse7.1user Linux - General 2 09-03-2003 05:13 PM

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

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