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 08-21-2009, 08:53 AM   #16
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351

If you run across something that blindly assumes /home is the root of $HOME, then that something should be fixed - you shouldn't have to alter your preferred way of setting up your system in this case.
 
Old 08-21-2009, 01:53 PM   #17
Allamgir
Member
 
Registered: Aug 2009
Posts: 50

Original Poster
Rep: Reputation: 17
Wow, Now I really understand. "UNIX system resources" makes more sense to me. Thanks so much for that page describing the hierarchy standards. That really helps me understand why /home is what it is as well as all the other directories. Also, that description of / being the all way intersection and /home makes getting home faster seems more logical (sorry I can't name specific users; I'm trying to type this on my phone).

I'm just having one more problem with sudo/permissions. Sometimes I'm not allowed to cd into a directory when I mount my external hard drive to it. I have to log in as root. If I try "sudo cd" bash just tells me the command is not found. I have to fully "su". Is there a group I can add my regular user to so I can cd to any directory (though not necessarily write to it), including external media? "sudo cd" seems really strange.
 
Old 08-21-2009, 02:47 PM   #18
/dev/me
Member
 
Registered: May 2008
Distribution: Slackware 13
Posts: 116

Rep: Reputation: 20
Quote:
Originally Posted by Allamgir
I'm just having one more problem with sudo/permissions. Sometimes I'm not allowed to cd into a directory when I mount my external hard drive to it. I have to log in as root. If I try "sudo cd" bash just tells me the command is not found. I have to fully "su". Is there a group I can add my regular user to so I can cd to any directory (though not necessarily write to it), including external media? "sudo cd" seems really strange.
Yeah, I noticed how `sudo cd /blah` doesn't work on an *buntu box. Well, you could change things perhaps with group permissions, but to me it seems something else is amiss. If you mount the drive as user, and you have (or should have) permissions over the directories then ... ehm?

Can you post the line in fstab that gives you permission to mount that device on that mountpoint? And the permissions on the directory that is giving you troubles? `ls -l /path/to/dir`
 
Old 08-21-2009, 03:06 PM   #19
Allamgir
Member
 
Registered: Aug 2009
Posts: 50

Original Poster
Rep: Reputation: 17
Oh I see. I wasn't using fstab at all and I mounted the device manually from /dev/sdc1 to /mnt/tmp using sudo. I just thought that normal users would be able to read even when mounted by root. I'm so used to automounting utilities. I guess I could just get used to su'ing to root and accessing the files that way.

I just wanted to mention I noticed how awesome the slackware community is! You guys are as knowledgeable, if not more, than the Arch community! I really think I'm going to like slackware
 
Old 08-21-2009, 03:34 PM   #20
/dev/me
Member
 
Registered: May 2008
Distribution: Slackware 13
Posts: 116

Rep: Reputation: 20
Quote:
Originally Posted by Allamgir
Oh I see. I wasn't using fstab at all and I mounted the device manually from /dev/sdc1 to /mnt/tmp using sudo. I just thought that normal users would be able to read even when mounted by root. I'm so used to automounting utilities. I guess I could just get used to su'ing to root and accessing the files that way.
No, if all users could access devices mounted by root, not a lot would be left of the security system. There's more options on that matter than I could describe here, but editing fstab is a very good place to start.

Be sure to read the fstab man page, but in short this is the syntax:
Code:
Device      Mountpoint          filesystem   Options     dump check

#Example:
/dev/sda1   /mnt/hd             auto         user,noauto   0  0
And now any regular user who's member of the plugdev group can mount that particular device under that particular mountpoint. You can fine tune this more, but this'll get you started. If not for anything else, it would keep you from having to be root to access a drive that you need as user.

In fact, all your automounters respect /etc/fstab, so learning to edit that gives you more flexibility on the automounting frontier as well. If there's a 'special' device you always want mounted under a certain directory, it is possible as well. It makes scripting easier for one thing.

Quote:
Originally Posted by Allamgir
I really think I'm going to like slackware
And you'll have more fun than you really wanted ;-)

Last edited by /dev/me; 08-21-2009 at 03:40 PM.
 
  


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
Reg EX - Trouble writing regular expression slackaddict Programming 18 08-18-2008 05:06 AM
no sound when regular user LQ496873 Linux - Newbie 10 07-22-2006 03:21 PM
Trouble using a regular expression with CentOS spiffytech Linux - Software 2 12-22-2005 11:17 AM
Having trouble with a perl regular expression... jayemef Programming 3 08-25-2005 11:00 PM
How do I login as a regular user? hitbob Linux - Newbie 2 10-04-2003 05:14 AM

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

All times are GMT -5. The time now is 06:54 PM.

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