LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-08-2007, 09:13 PM   #1
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Rep: Reputation: 30
Thumbs up (Solved) Slackware12 .. Fstab and Package Questions


Hi all,

I've just installed Slackware12 (very nice OS, thanks Pat), and have a couple of questions to improve my installation.

Question1: I don't seem to be able to view the contents of my slackware partition in KDE (/dev/hda1) as either user or root?
(permission denied ... as 'user')
(security policy prevents access ... as 'root')
My fstab file reads as follows: can anyone offer any suggestions on how I can have read/write permissions in KDE as root, and read permissions as user?

===========================================
/dev/hda2 swap swap defaults 0 0
/dev/hda1 / reiserfs defaults 1 1
/dev/hda5 /mnt/Storage vfat noauto,users,rw 1 0
/dev/hdb1 /mnt/winxp vfat noauto,users,rw 1 0
/dev/hdb5 /mnt/work vfat noauto,users,rw 1 0
/dev/hdd1 /mnt/Kubuntu reiserfs defaults 1 1
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
================================================


I have also noticed that some of my favorite packages are not installed ... Kaffeine, k9copy, iso-master .. etc ....

Question2: If I install these packages from the slackware11 repositories (using swaret), will i break my system in any way?
Or do I have to wait until the files appear in the slackware12 repositories and then swaret --install them?

Any advice would be appreciated

Thanks very much

Orbit

Last edited by orbit; 07-15-2007 at 09:07 PM. Reason: Topic was resolved
 
Old 07-08-2007, 09:45 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Can you list the root directory: ls /

Forget about /dev/hda1. That is the device and not where the partition is mounted.

Not using slackware, I don't know about question 2. Most likely it the library versions of some packages will be different and you won't be able to install the packages. You might try installing these packages from source instead of an install version that installs binaries.
 
Old 07-09-2007, 01:10 AM   #3
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Original Poster
Rep: Reputation: 30
Hi jschiwal, thanks for the quick response.

To answer your question; while in KDE, if i open either 'root' and/or 'user' console shells, i can list the / filesystem.
But if I try to access the / filesystem through KDE system:/media, the problem I mentioned above occurs.

All the other partitions have read/write permissions correct as per the fstab file I posted earlier, except for the slackware / partition.
Does this help at all, is there any other information I can give you to help resolve this problem?

Thanks very much, I'll look forward to your reply.

Regards

Orbit
 
Old 07-09-2007, 04:21 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
You can enter "/" in the file browser. I did notice that I can open my root partition via media:/. I don't know if that is because I am a member of the wheel group. Anyway, you can just enter "/" in the file browser so it isn't a biggie. What are the permissions on the / directory?
 
Old 07-09-2007, 07:31 PM   #5
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Original Poster
Rep: Reputation: 30
Hi again jschiwal, thanks again for your help on this topic

I can enter / in the konqueror file manager and slackware's root filesystem will show up, so that is a possible work around for the problem.
However I would still like to resolve this issue and use the /media icon, so that it is possible to access the partition normally like all the other partitions through KDE.

With regards to your permissions query of my / directory, I'm not sure how I can check that, as KDE shows the slackware partition as an 'Unmounted Hard Disk Volume' (even though I have booted slackware) and therefore does not give the usual [permissions] tab in the properties dialogue. I know how to check folder permissions in a midnight commander terminal, but I do not know how to use it to check an actual partition's permissions? Can you offer any suggestions as to how I can get that / permissions information to you?

Following on with your user group settings suggestion, I have checked the group settings for the system accounts;
The 'user' account is in these groups;
audio, cdrom, disk, floppy, ftp, games, haldaemon, messagebus, nobody, nogroup, plugdev, video and wheel.

The 'root' account is in these groups;
adm, bin, daemon, disk, floppy, sys and wheel groups.

Do you think any of these group settings need to be adjusted on either accounts to make KDE allow me to use the /media icon?

Once again thanks very much for your help, and again I'll look forward to your reply.

Regards

Orbit
 
Old 07-10-2007, 01:12 AM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Quote:
haldaemon, messagebus, nobody, nogroup, plugdev ...
I think that the haldaemon and messagebus groups are system groups. Being a member of those might be dangerous.
nobody is a group with very little permissions. It is used by a root cron job to limit the permissions on a daemon. You don't need to be a member of nobody. I suspect you don't want to be a member of nogroup for the same reason.
I don't have a plugdev group. Check if this is a group that grants members access to some features or if it is a group used because the hotplugging system is jailed. For example, you don't want normal users to be members of the disk group because that would give access the the devices themselves.

The sidebar in konqueror also has a "system" icon that is a shortcut to open the root directory.

You can look at permissions in the console using the -l option of the ls command.
Code:
ls -ld /
drwxr-xr-x 22 root root 4096 2007-07-05 22:47 /
You system might be using udev & hotplugging. Mine uses udev and hal helper programs.

Last edited by jschiwal; 07-10-2007 at 01:15 AM.
 
Old 07-10-2007, 02:01 AM   #7
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Original Poster
Rep: Reputation: 30
Ok thanks jschiwal,
I have now removed the groups; [haldaemon, messagebus, nobody and nogroup] from the 'user' account, and then restarted the pc.
(unfortunately, didn't make any difference when I attempted to mount the Slack12 partition, same 'permission denied' msg )

inputting ls -ld / in a root terminal returns;
drwxr-xr-x 22 root root 512 2007-07-10 11:03 //

Using the system sidebar in kde, if I highlight the slack12 (unmounted) partition, it shows:
From within my user account;
Permissions: dr--------
If I fast switch into my kde root account and do the same thing to the slack12 partition, it shows;
Permissions: -rwsrwsrwt

I don't have hotplug installed (I remember reading in one of the slack12 documentations, that Pat and the team had now dropped it in favor of the Hal daemon because of the upgrade to 2.6 kernel standard.
As a result of that change, I have read everywhere that users are just supposed to be added to the 'cdrom and plugdev' groups and then slack all works easily. This is why I haven't dropped the plugdev group from the user account.

Does this offer any leads to resolving this? Is there any other information I can give to help?

Again, thank you very much, I'll await your reply.

Regards

Orbit
 
Old 07-10-2007, 04:49 AM   #8
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
Question 1.
Don't use root account. As user, you can type
Code:
 
su -c konqueror
Why you get that error as root? I don't know yet.

Question 2.
I use some packages from 11.0 repositories (using installpkg, not swaret): wine, digikam (+ libs). I don't see any problem on my system yet.
 
Old 07-10-2007, 07:04 PM   #9
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Original Poster
Rep: Reputation: 30
Hi Road_Map,

Thanks for the packages query response, that helps alot
If you do find the answer to the partition problem, I'll be extremely grateful.

In the meantime, I'll keep reading to see if I can work it out from this end.

Regards

Orbit
 
Old 07-10-2007, 09:50 PM   #10
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Wheezy, Slackware
Posts: 604

Rep: Reputation: 69
I am using packages from 11 and 10. No problem whatsoever, and I'll bet many packages from 9 will work. Slackware doesn't mind older packages. That's one of the reasons why I love it.

I cannot understand your other problem. You can access / and everything below it, so what else do you want?
 
Old 07-10-2007, 11:47 PM   #11
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Original Poster
Rep: Reputation: 30
Hi lucmove,

I would like to be able to access the slackware partition HDD icon in the /media directory using the mouse, (click=>Go) ... the same as I use all the other partitions; without getting a big 'Permission Denied' message.

If the icon is there, and the Slackware OS is running ... then I don't know why this icon shows up in /media as an 'Unmounted Hard Disk Volume' ?
(Which I am not at all allowed to access)

Having to manually input a / into the filemanager is a workaround for now, but it is messy and less than I would expect from this beautiful OS .. this is the (hopefully temporary) issue I am trying to resolve.

Is this a better scenario explanation?

Cheers

Orbit
 
Old 07-11-2007, 12:04 AM   #12
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,920

Rep: Reputation: Disabled
I can't reproduce this error at all. I don't normally use kde, but even so, media:/dev/sda3 (which is my root partition) displays fine in konqueror (as do all other devices). Does the icon show a lock on it when you just go to media:/ ?
 
Old 07-11-2007, 12:55 AM   #13
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Original Poster
Rep: Reputation: 30
Hi rworkman,

No, the partition doesn't display a lock symbol, it looks just like a normal unmounted partition.

Something else I thought of, during the clean install of Slackware12, I formatted the slackware partition in the reiser file system, could this have any relevance at all?

Someone else on this forum (topic=568111), was stating that he had exactly the same error as me, so could this be specific with slack being installed on /dev/hda1?

Could it be a Hal,Udev,Dbus configuration issue/conflict regarding /dev/hda1?
(as you have said that it hasn't happened to you on dev/hda3).

N.B. [I'm just trying to throw as much information, and as many thought processes in the air to see what comes down].

I hope this information helps in some way, I'll look forward to your response.

Regards

Orbit
 
Old 07-11-2007, 02:48 PM   #14
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian
Posts: 462

Rep: Reputation: 39
Isn't the /media folder basically used by udev and/or hal to mount media in userspace? If so, then said media would be mounted with appropriate permissions for user. Mounting (an already mounted) root file system in userspace sounds like a bad idea.

Therefore, the proper way to access the root directory is with /

Just a thought.
 
Old 07-11-2007, 03:00 PM   #15
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,920

Rep: Reputation: Disabled
orbit:
I overwhelmingly agree with mattydee about the "proper" way to access / - however, see my post in the other thread on this topic; I think you posted in it iirc, so you should get a mail notification about 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
xorg7.2 (slackware12) dual out trouble on i915 deep.blue Linux - Software 1 07-17-2007 01:59 AM
How to install Slackware12.0 on macbook? sotux Slackware - Installation 2 07-14-2007 01:42 AM
fstab questions utanja Debian 9 10-04-2004 09:34 AM
fstab questions dehuszar Linux - Newbie 4 08-04-2003 02:32 PM
fstab for RH 8.0 and other questions... rivethead Linux - Software 1 01-05-2003 04:47 PM


All times are GMT -5. The time now is 10:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration