LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-08-2001, 02:32 PM   #1
infotech
LQ Newbie
 
Registered: Nov 2001
Posts: 6

Rep: Reputation: 0
permissions


I created a new folder in my Home directory to mount an NTFS share to it. I did this, but I had to do it as SU. Doing so, root took ownership of the folder, therefore taking all my read/write/execute, etc... permissions away. I tried logging in as root and giving ownership back to my user, but it wouldnt do it. How can I get permission to manipulate the data in the directory?
 
Old 11-08-2001, 02:57 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
a non root user can only mount partitions/device/samba shares (it is samba you're using yeah?) that are strictly defined ni /etc/fstab, as being able to mount anything is inherently insecure.

set up the share in fstab and just specify the rights there. my fstab lists

//simon/share /share smbfs username=chris,password=pass,user

'user' defines that a user can mount the share my themselves. as for prooper permissions, that's down to the server i think, you can't override a remote shares rights locally, for obvious reasons, but you can restrict them.

check 'man smbmount' for info on what atrribs you can put in there.
 
Old 11-08-2001, 03:43 PM   #3
infotech
LQ Newbie
 
Registered: Nov 2001
Posts: 6

Original Poster
Rep: Reputation: 0
almost...

That is deffinetly a better way of getting the shares mounted, but I still can't change the contents when I am logged in as myselft. I have read only access. When I am logged in as root i can do anything I want except change ownership/ permissions on the mount point. I like the icon on the desktop,and auto mount this does though.
 
Old 11-08-2001, 04:00 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well what have you put in fstab?

i have desktop icons for my shares set up that way, once their mounted rescan devices and they'll appear, in gnome that is.

try doing what i did and just mount it as the user, there's no way that, assuming the server is set up right, you can't access stuff.
 
Old 11-08-2001, 10:37 PM   #5
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
as root do: chmod o+w directory name
 
Old 11-09-2001, 08:46 AM   #6
infotech
LQ Newbie
 
Registered: Nov 2001
Posts: 6

Original Poster
Rep: Reputation: 0
Finally figured it out, at the end of my command in fstab, I had to put the option UID=username, rw. That did it. Thanks for everyones help in the matter.

Last edited by infotech; 11-09-2001 at 10:22 AM.
 
  


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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
Permissions jymmi Linux - Newbie 3 04-14-2005 11:43 PM
Permissions help reddog64 Linux - Newbie 1 04-22-2004 05:23 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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