DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-06-11 20:55:50

bomaroast
Member
Registered: 2008-05-30
Posts: 11

linux permissions noob

I use linux on my computer and experienced some strangeness when trying to get the built in samba working on my NAS box. 

First off all, I created the same user with the same password on the NAS box that I have on my main box.  My expectations were that having the same user in the same group would be sufficient to log in.

The symptoms were that I would upload files to a share and the when I checked the permissions on the file the user.group names would be their ID numbers instead of their names.  Another was that I was getting a strange error (rsync: mktmps: name.of.file.2346 blah).

Changing the ID numbers of my user / primary group on my computer seems to have resolved the issues, but I had to delete my whole home directory and recreate it to be able to startx again.

So my question is this: How do linux permissions across multiple machines work?  How can I make it so user/group information between the two devices is transparent?

Offline

 

#2 2008-06-11 21:42:40

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: linux permissions noob

One technique to manage linux permission across multiple machine is called NIS, (Network Information Services)
http://www.yolinux.com/TUTORIALS/NIS.html  If you have very few systems, this can also be done by hand synchronizing
the user/group IDs between each machine. 

This is how I have integrated the DNS-323 into my linux machine environment.  Similar to your solution, excpet I
choose to force the DNS-323 to match the existing user/group IDs on my network.

Using ffp, I created a script which would copy a modified hosts and group files (which match my network's IDs)
to the /etc directory each reboot.  I also share the DSN-323 file system with [user space] NFS, using ffp, to my other Linux machines.

Last edited by mig (2008-06-11 21:45:35)


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#3 2008-06-11 21:56:39

nUll
Member
Registered: 2008-03-09
Posts: 113

Re: linux permissions noob

If you have many users and systems in your network NIS is not the way to go.....
ypcat passwd>>file.name can be a lethal injection to your Systems security.
I would suggest LDAP & Kerberos....
But if you want simplicity NIS is the way to go! Is very simple to setup as well to hack tongue

Offline

 

#4 2008-06-12 05:25:05

bomaroast
Member
Registered: 2008-05-30
Posts: 11

Re: linux permissions noob

Thanks for the quick responses!  I'm reading up on NIS right now.

Using ffp, I created a script which would copy a modified hosts and group files (which match my network's IDs)
to the /etc directory each reboot.

If the system is already running how do you instruct the machine to re-read the /etc/group?

edit: And another good one.  Why doesn't the dns-323 give any output for "echo $UID" but "whoami" works fine?

Last edited by bomaroast (2008-06-12 06:02:37)

Offline

 

#5 2008-06-12 16:52:30

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: linux permissions noob

bomaroast wrote:

If the system is already running how do you instruct the machine to re-read the /etc/group?

I don't believe /etc/group is "read" only at system startup.  In my experience, any changes to /etc/group are immediately
available.

Last edited by mig (2008-06-12 16:57:17)


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB