LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-27-2011, 06:23 AM   #1
kuiper
LQ Newbie
 
Registered: Dec 2010
Distribution: slackware
Posts: 15

Rep: Reputation: 0
Another Permission Problem


Hey guys,

I must be doing something wrong here. I've only recently migrated to slack so don't to harsh.

I've plugged in my USB drive and it has come up with the owner being root and the user being root.

So....
I first mount the device into my home directory /home/kuiper/externalUSB

i do a ls -l and it comes back with owner root and group root

(using sudo)
so i do chown -R kuiper /home/kuiper/externalUSB
then chgrp -R users /home/kuiper/externalUSB

however when i perform a ls -l again nothing has changed

This is probably an easy fix but any help would be really great, i cant listen to my music ATM :P thanks guys
 
Old 03-27-2011, 07:06 AM   #2
slack-fu
Member
 
Registered: Feb 2006
Location: Norway
Distribution: Slackware Linux 13.37
Posts: 71

Rep: Reputation: 10
Are you (your username) a member of the plugdev group?
 
Old 03-27-2011, 07:14 AM   #3
kuiper
LQ Newbie
 
Registered: Dec 2010
Distribution: slackware
Posts: 15

Original Poster
Rep: Reputation: 0
I'm not mate. Where can i edit the plugdev group ??
Thanks for your help. An ex Debby user here . Thanks heaps
 
Old 03-27-2011, 07:21 AM   #4
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
gpasswd -a kuiper plugdev

That's assuming your username is kuiper.
 
Old 03-27-2011, 07:21 AM   #5
slack-fu
Member
 
Registered: Feb 2006
Location: Norway
Distribution: Slackware Linux 13.37
Posts: 71

Rep: Reputation: 10
Smile

Type this as root:
Quote:
usermod -a -G plugdev yourusername
Hope that helps

EDIT: Too late I see. Different reply but same result.

Last edited by slack-fu; 03-27-2011 at 07:22 AM.
 
Old 03-27-2011, 07:28 AM   #6
kuiper
LQ Newbie
 
Registered: Dec 2010
Distribution: slackware
Posts: 15

Original Poster
Rep: Reputation: 0
ahh both of you are legends. fixed the probelm

I hate to be a pain but could u explain what im actually changing? im only 15 so im young and stupid and trying to figure this out from the ground up ..
thanks heaps
 
Old 03-27-2011, 07:32 AM   #7
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Sure, there is a file /etc/group, and it is a table with
each line showing the name of a group followed by a colon
and then followed by the users who are members.

If you know what you're doing you can edit that file and
it will have the same results as running gpasswd.
 
Old 03-27-2011, 07:42 AM   #8
kuiper
LQ Newbie
 
Registered: Dec 2010
Distribution: slackware
Posts: 15

Original Poster
Rep: Reputation: 0
ahh thanks heaps. Its weird though i still cant change the ownership to kuiper. it still says owner root and group root
i can see the file plugdev:x:83:kuiper
but i plug the USB in and it comes up failed to mount kuiper

weird. i cant seem to get ownership or change the group of the external USB which ive mounted
 
Old 03-27-2011, 08:10 AM   #9
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
I didn't read from the top, I just saw that you wanted to know how
to add a user to a group.

Good call that adding yourself to the group doesn't change the
ownership of the mounted directory.

I'm hoping someone more familiar with Slackware will comment on
how to set ownership and permissions on automatically mounted
USB devices. (In CentOS and Mint my user has access by default.)
 
Old 03-27-2011, 08:18 AM   #10
kuiper
LQ Newbie
 
Registered: Dec 2010
Distribution: slackware
Posts: 15

Original Poster
Rep: Reputation: 0
Yeah same here, thanks for your help though. every little bit of information helps. have a good one
 
Old 03-27-2011, 08:31 AM   #11
slack-fu
Member
 
Registered: Feb 2006
Location: Norway
Distribution: Slackware Linux 13.37
Posts: 71

Rep: Reputation: 10
My USB devices automount and I didnt change any permissions or do anything in /etc/fstab

My user is a member of the following groups: users, wheel, disk, audio, video and plugdev.
 
Old 03-27-2011, 10:21 AM   #12
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
You also have to log out and log back in for the group information to take affect.
 
Old 03-27-2011, 10:26 AM   #13
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
I know another OS whose name I won't mention that does require a
logout and login for permissions to be updated. However with
Linux and Unix any changes take effect immediately, even for
users that are currently logged in.
 
0 members found this post helpful.
Old 03-27-2011, 11:03 AM   #14
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by carltm View Post
However with
Linux and Unix any changes take effect immediately, even for
users that are currently logged in.
You are simply incorrect or talking about something else.

Any existing login environment will not see the change. A new login environment will. Most window managers that I've used operate in a login environment.
 
Old 03-27-2011, 08:40 PM   #15
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by carltm View Post
I know another OS whose name I won't mention that does require a
logout and login for permissions to be updated. However with
Linux and Unix any changes take effect immediately, even for
users that are currently logged in.
Permissions are updated immediately, but the groups a user belongs to are not (and thus the window manager will not realize your user is in the appropriate group until you log out of X [and the console you launched it from, if in runlevel 3] and log back in).

If your external hard drive is FAT or NTFS, you will not be able to change permissions (since Linux-style permissions do not exist in FAT/NTFS filesystems). Only the mount options will change the *perceived* user. If you belong to the plugdev group and the device is automounted then it should be owned by your user (assuming it is indeed a FAT/NTFS filesystem).
 
  


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
permission problem sachin.s.puri Linux - Newbie 9 07-08-2009 04:19 AM
Samba sharing problem (user permission problem) beikokutn Linux - Software 4 03-11-2008 05:55 AM
Permission Problem scbops Linux - Newbie 2 12-07-2006 12:39 AM
permission problem - "You don't have permission to access" radone Linux - General 3 07-24-2006 10:23 AM
permission problem.. bit7 Linux - Software 4 02-26-2003 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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