Re: problem with samba...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Scott van Looy wrote:
> Samba can't find my "users" group. And when I do "groups" it doesn't
> show up here either. It was added using system-config-users
> 
>From the groups man page:

groups - print the groups a user is in

It looks like you are not part of the users group. If you want to
see if there is a group called users, try running:

grep users /etc/group

> I actually removed the existing group and replaced it with the
> system-config-users generated one.
> 
Unless you added the users to the group after you created it,
chances are that the group users does not have any members. When you
deleted the users group, you removed all the members at the same
time. Re-creating the group does not put them back. I would also
expect that the group you added has a different group ID then the
old one.

> This problem has only manifested itself today, it was previously working
> fine.
> 
<-------------------[ SNIP ]------------------>
> 
> Have I done something wrong? Or is there a bug? Or has something changed
> in the way the config works?
> 
Deleting a re-creating a group needs to be done with care. Linux
uses the GID (number), and not the group name for things like group
ownership of files. Unless you look at the GID before deleting the
group, and specify the same GID when re-creating the group, you run
the risk of leaving files/directories with GIDs that do not map to a
group name.

When did this stop working, and exactly what error message are you
seeing? I suspect that it started when you deleted and re-created
the users group, and Samba is complaining that it can not access the
files/directories with group users. If that is the case, then you
will need to delete the users group, and re-create it with the old
GID, or change the group on the directories to the new users GID.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux