Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-28-2006, 12:09 AM
|
#1
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
|
LAN Directory and File Permissions Problem
I've been trying to get samba configured on my home office LAN with mixed results. I only want basic share level access among my boxes. I have a good set of firewall rules, and samba is binded to the local LAN, so for a simple home LAN, share level security is sufficient.
Box 1 is multi-boot, but this problem occurs when that box is using Slackware. Using samba when Box 1 is in Windows works just fine with Box 2 in Slackware. The problem is the Slack-Slack combo, not Windows-Slack.
I can connect just fine between two boxes. Samba works okay at that point. Oddly, however, I experience different results despite using the same config files, etc.
I've created two shares on two boxes, exactly the same. One share is to /home/public and I assigned permissions to that directory as 777. Anybody can do anything there. I also created a share to the root (/) directory tree. This is for browsing and file comparison purposes for maintenance as root.
From Box 1 I can connect to Box 2. I receive all expected permissions to /home/public on Box 2. The head scratcher is that as root on Box 1 I do not have access to all directories on Box 2 from the root (/) share. As root I also cannot access the home/$user directories or /root.
Contrarily, from Box 2 everything works close to what I expect. All normal users have all permissions to Box 1 /home/public. Root has access to all files on the Box 1 root (/) share, including rights to /root and all /home/$users. Normal users on Box 2 can see files and directories on Box 1 with expected results, and cannot view files in privileged directories such as /root, /home/$any_other_user, /etc/samba/private, etc.
So things seem to be in order when connecting Box 2 to Box 1, but not from Box 1 to Box 2. Odd.
These two boxes are configured as identically as possible. The samba config files are the same, firewall rules, etc. Because of these similarities, I do not think this is a samba issue but something more fundamental. Rather than immediately post a bunch of config files that will water your eyes, I'll pause at this point and will post as needed based upon your responses.
FWIW, I have not installed NFS. That option is down the road on the to-do list. Right now I just want to get the samba wrinkles ironed.
Thanks.
|
|
|
08-28-2006, 12:37 AM
|
#2
|
Member
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 643
Rep:
|
Quote:
From Woodsman
The problem is the Slack-Slack combo, not Windows-Slack.
|
Just a wild guess here: you might want to install and use NFS since you are going from linux to linux. Samba might not do that very well.
|
|
|
08-28-2006, 12:52 AM
|
#3
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
/dev/gpmctl: No such file or directory
Lately this message has been appearing on my boxes as I have been updating to 10.2 to prepare for 11.0.
Many moons ago I experienced this error, and I learned that the message appears when using Midnight Commander. I added a command alias mc -d to stop that. I did not see the error message until recently.
Some recent sleuthing led me to discover that the ncurses tools used in pkgtools and other ncurses-based Slackware scripts, such as setconsolefont, will also trigger this error message. Now, the pkgtools are scripts and there is nothing in them to trigger this nuisance message. The problem is in the ncurses tools, probably triggered when using the dialog command.
Tonight I confirmed that the error message appears when using ncurses-based tools. I ran setconsolefont and voila!
I further discovered that the error message appears only when using the ncurses-based tools from the console. When using those same tools from within an xterm (Konsole) window the error message does not appear.
Any ncurses experts here to verify this problem or how to permanently stop the nuisance message? Yes, the message is non fatal, but as a Slacker I prefer clean and crisp logs.
I'm using ncurses-5.4-i486-2 and gpm-1.19.6-i486-6, although I never use gpm.
Thanks.
|
|
|
08-28-2006, 12:33 PM
|
#4
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,961
|
Quote:
Originally Posted by Woodsman
Lately this message has been appearing on my boxes as I have been updating to 10.2 to prepare for 11.0.
Many moons ago I experienced this error, and I learned that the message appears when using Midnight Commander. I added a command alias mc -d to stop that. I did not see the error message until recently.
Some recent sleuthing led me to discover that the ncurses tools used in pkgtools and other ncurses-based Slackware scripts, such as setconsolefont, will also trigger this error message. Now, the pkgtools are scripts and there is nothing in them to trigger this nuisance message. The problem is in the ncurses tools, probably triggered when using the dialog command.
Tonight I confirmed that the error message appears when using ncurses-based tools. I ran setconsolefont and voila!
I further discovered that the error message appears only when using the ncurses-based tools from the console. When using those same tools from within an xterm (Konsole) window the error message does not appear.
Any ncurses experts here to verify this problem or how to permanently stop the nuisance message? Yes, the message is non fatal, but as a Slacker I prefer clean and crisp logs.
I'm using ncurses-5.4-i486-2 and gpm-1.19.6-i486-6, although I never use gpm.
Thanks.
|
Hi,
You could disable as root the gpm by;
Code:
#chmod -x /etc/rc.d/rc.gpm
If you use pkgtool or any ncurses based slackware tool then you are using the gpm. You might not use the mouse with the tools but you are using the gpm when you use ncurses if the rc.gpm is executable.
I find that gpm is very useful from the cli. I use gpm a lot to copy, cut or insert/paste in the cli or console.
|
|
|
08-28-2006, 09:14 PM
|
#5
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
Quote:
You could disable as root the gpm by . . . chmod -x /etc/rc.d/rc.gpm . . .
|
Well, when I wrote " . . . although I never use gpm" I also meant that rc.gpm is already disabled. I could have been more clear.
I just ran another test and if gpm is enabled then a system log message appears about finding the mouse. If gpm is not installed then the nuisance message appears. The problem must be in the way the ncurses libraries look for the gpm. Possibly the updated version of these packages might have a cure, perhaps not. Distracting and irritating nonetheless.
Moderator:
FWIW, I don't know how I inserted this gpm discussion into my original thread. I thought I had started a new thread. Would a moderator kindly move this gpm discussion to a new thread? I don't want this discussion mixing with my question about file and directory permissions. If possible then thanks!
|
|
|
All times are GMT -5. The time now is 01:00 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|