Koozali.org: home of the SME Server

Access to users i-bays

Offline ronald1969

  • **
  • 34
  • +0/-0
    • http://www.kramsvogel.nl
Access to users i-bays
« on: February 07, 2005, 09:27:50 PM »
As administrator how can i get access to the contents of users?
...

mbachmann

Access to users i-bays
« Reply #1 on: February 08, 2005, 10:05:11 AM »
As admin you already have access.

Offline dmajwool

  • *****
  • 180
  • +0/-0
Access to users i-bays
« Reply #2 on: February 08, 2005, 02:48:36 PM »
Administrator has access rights to the entire filesystem.  You can access the homefolders using the local console of the server, or remotely using Putty.

At the console prompt, type mc to launch the Midnight Commander and navigate to /home/e-smith/files and you will see where you want to go from there.

HTH, David.

Offline ronald1969

  • **
  • 34
  • +0/-0
    • http://www.kramsvogel.nl
Access to users i-bays
« Reply #3 on: February 08, 2005, 07:54:47 PM »
Thanks for your reactions.
But when I am logged in on a remote windows system as Admin I only see the I-bays I created and the I-bay for Admin.
On the remote system I use Total Commander.
Why can I not access these I-bays using Total Commander?
...

Offline dmajwool

  • *****
  • 180
  • +0/-0
Access to users i-bays
« Reply #4 on: February 09, 2005, 07:57:35 AM »
Quote
Why can I not access these I-bays (at a remote workstation)using Total Commander?

Because SME does not expose the entire filesystem for browsing except when using the two access methods I described.
1. Local console
2. view local console remotely when connected via ssh.  Your original post asked about access to Users.  
Users' home folders are not i-bays.
HTH David

wingman

Access to users i-bays
« Reply #5 on: February 09, 2005, 06:57:59 PM »
Credit for the following goes to Patrick Tehvand of tehvand.com consulting. I ran across this months ago on his site, but the document is gone now. Follow the instructions, but be warned: I have not tried this myself. Only passing on what he said will work. Try at your own risk!

Create a new template fragment in /etc/e-smith/templates-custom/etc/smb.conf
--I call mine 55adminhomes

# vi /etc/e-smith/templates-custom/etc/smb/smb.conf/55adminhomes
Add the following to the template:
[admin_shares]
comment = home_directories
path = /home/e-smith/files/users/
valid users = admin root *your_user_name
admin users = admin root *your_username
write list = admin root *your_user_name
public = no
browsable = yes
writable = yes

*you may add as many users as you like here as long as they are separated by a space.

Then refresh the template:
# /sbin/e-smith/expand-template /etc/smb.conf

Then refresh the Samba server so your template is active:
# /sbin/service smb reload

Now you should be able to browse to \\\admin\shares

syx

Access to users i-bays
« Reply #6 on: February 10, 2005, 06:17:13 AM »
Great tip about the admin shares. I have done this on a test server (6.5b2) but i made the change to

/etc/samba/smb.conf

instead of the template file you mentioned above.

It works, and i would like to do it to the real server but i am weary because i did it differently.

Have i gone about this the wrong way ?
Is it safe to do to my real server (6.0b2) ?

Thanks

mbachmann

Access to users i-bays
« Reply #7 on: February 10, 2005, 10:13:57 AM »
Noticed the warning "DO NOT MODIFY THIS FILE" at the top of smb.conf?

If you alter settings in files with such warnings, changes will be lost at reboot. You must use the template system. Do like wingman suggested.

syx

Access to users i-bays
« Reply #8 on: February 10, 2005, 11:21:01 PM »
under the templates-custom/ directory do i just manually create the directory structure, and is the 55adminhomes a text file that i put the new share config in ?


Thanks

wingman

Access to users i-bays
« Reply #9 on: February 11, 2005, 03:16:02 PM »
syx,

No. The first command that I gave you (bold type) starts the vi text editor. If you are not familiar with this editor, do a quick Google search on it and spend 15 minutes reading about the basics. When using the first command, it creates the directory path and the file all in one step. BTW, this needs to be run from the command line, and the # at the beginning is NOT to be typed in. After vi is open, hit "i" to enter insert mode. Then type in the contents as shown. When finished, hit the "Esc" key to return to Command mode, then type "ZZ" (notice the caps) to quit and save the file.
Now type the other commands in bold, exit the command line, and you're done.

Offline bushinc

  • ***
  • 62
  • +0/-0
    • http://www.bushinc.com
Access to users i-bays
« Reply #10 on: March 01, 2005, 09:34:44 PM »
Just an FYI - pico is IMHO much easier to work with than vi.  Not to offend any vi gurus out there...
...

bart2

Access to users i-bays
« Reply #11 on: March 02, 2005, 04:30:30 PM »
Quote from: "wingman"
......hit the "Esc" key to return to Command mode, then type "ZZ" (notice the caps) to quit and save the file.



I get the message:

"e-smith/templates-custom/etc/smb/smb.conf/55adminhomes" E212: Can't open file for writing

what i'am doing wrong (i'am new to linux so i think it is something simple ) :-?