FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-21-2010, 02:11 PM
listofx
 
Default 'net usershare' returned error 255

Hi,

I want to share a directory to friends. I do remember that it has once
worked before in nautilus just by right-clicking on a directory.

but now, it prompts:

> 'net usershare' returned error 255: net usershare: cannot open
> usershare directory /var/lib/samba/usershares. Error
> Permission denied
> You do not have permission to create a usershare. Ask your
> administrator to grant you permissions to create a share.
>

ls -ld /var/lib/samba/usershares told me
> drwxrwx--T 2 root haldaemon 4096 2010-07-21 21:12 usershares/

I consider the group haldaemon is highly suspicious since it is located
after user 'upload' (see below) I created for uploading. see vipw below.
Who created this user?

> xiang:x:1000:1000:Xiang Liu,,,,:/home/xiang:/bin/bash
> privoxy:x:114:65534::/etc/privoxy:/bin/false
> ftp:x:1001:65534::/home/ftp:/bin/false
> upload:x:1002:65534::/home/upload:/bin/false
> haldaemon:x:115:121:Hardware abstraction layer,,,:/var/run/hald:/bin/false

There is also a group called haldaemon in my system. (the last line in /etc/group)
> haldaemon:x:121:

I have tried to find other files or directories owned by haldaemon with
intention to finally find out a package which causes a new user
haldaemon. Utilizing command 'find', I did not obtain any valuable
results.

> xiang@xiang-laptop:/$ sudo find ./ -group haldaemon -print
> ./proc/1927
> ./proc/1927/task
> ./proc/1927/task/1927
> ./proc/1927/task/1927/attr
> ./proc/1927/task/1929
> ./proc/1927/task/1929/attr
> ./proc/1927/net
> ./proc/1927/attr
> ./proc/1969
> ./proc/1969/task
> ./proc/1969/task/1969
> ./proc/1969/task/1969/attr
> ./proc/1969/net
> ./proc/1969/attr
> find: ‘./proc/4520/task/4520/fd/5’: No such file or directory
> find: ‘./proc/4520/task/4520/fdinfo/5’: No such file or directory
> find: ‘./proc/4520/fd/5’: No such file or directory
> find: ‘./proc/4520/fdinfo/5’: No such file or directory
> ./var/lib/samba/usershares

> xiang@xiang-laptop:/$ sudo find ./ -user haldaemon -print
> ./proc/1927
> ./proc/1927/task
> ./proc/1927/task/1927
> ./proc/1927/task/1927/attr
> ./proc/1927/task/1929
> ./proc/1927/task/1929/attr
> ./proc/1927/net
> ./proc/1927/attr
> ./proc/1969
> ./proc/1969/task
> ./proc/1969/task/1969
> ./proc/1969/task/1969/attr
> ./proc/1969/net
> ./proc/1969/attr
> find: ‘./proc/4554/task/4554/fd/5’: No such file or directory
> find: ‘./proc/4554/task/4554/fdinfo/5’: No such file or directory
> find: ‘./proc/4554/fd/5’: No such file or directory
> find: ‘./proc/4554/fdinfo/5’: No such file or directory
>

help needed.

Best Regards,
xiang



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-21-2010, 04:26 PM
Tom H
 
Default 'net usershare' returned error 255

On Wed, Jul 21, 2010 at 10:11 AM, listofx <listofx@gmail.com> wrote:
>
> I want to share a directory to friends. I do remember that it has once
> worked before in nautilus just by right-clicking on a directory.
>
> but now, it prompts:
>
>> * * * * 'net usershare' returned error 255: net usershare: cannot open
>> * * * * usershare directory /var/lib/samba/usershares. Error
>> * * * * Permission denied
>> * * * * You do not have permission to create a usershare. Ask your
>> * * * * administrator to grant you permissions to create a share.
>
> ls -ld /var/lib/samba/usershares told me
>> * * * * drwxrwx--T 2 root haldaemon 4096 2010-07-21 21:12 usershares/
>
> I consider the group haldaemon is highly suspicious since it is located
> after user 'upload' (see below) I created for uploading. see vipw below.
> Who created this user?
>
>> * * * * xiang:x:1000:1000:Xiang Liu,,,,:/home/xiang:/bin/bash
>> * * * * privoxy:x:114:65534::/etc/privoxy:/bin/false
>> * * * * ftp:x:1001:65534::/home/ftp:/bin/false
>> * * * * upload:x:1002:65534::/home/upload:/bin/false
>> * * * * haldaemon:x:115:121:Hardware abstraction layer,,,:/var/run/hald:/bin/false
>
> There is also a group called haldaemon in my system. (the last line in /etc/group)
>> * * * * haldaemon:x:121:
>
> I have tried to find other files or directories owned by haldaemon with
> intention to finally find out a package which causes a new user
> haldaemon. Utilizing command 'find', I did not obtain any valuable
> results.
>
>> * * * * xiang@xiang-laptop:/$ sudo find ./ -group haldaemon -print
>> * * * * xiang@xiang-laptop:/$ sudo find ./ -user haldaemon -print

The uid and gid are different from mine but haldaemon is a valid system user.

Whether the haldaemon group is meant to "own" usershares, I have no
idea. I have never used samba's usershares and have never set up samba
through a GUI.

I am pretty sure that I have seen someone post this error before and
that the solution was to remove and add the user from the sambashare
group before setting up a share.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-21-2010, 05:00 PM
listofx
 
Default 'net usershare' returned error 255

On 三, 2010-07-21 at 12:26 -0400, Tom H wrote:
> On Wed, Jul 21, 2010 at 10:11 AM, listofx <listofx@gmail.com> wrote:
> >
> > I want to share a directory to friends. I do remember that it has once
> > worked before in nautilus just by right-clicking on a directory.
> >
> > but now, it prompts:
> >
> >> 'net usershare' returned error 255: net usershare: cannot open
> >> usershare directory /var/lib/samba/usershares. Error
> >> Permission denied
> >> You do not have permission to create a usershare. Ask your
> >> administrator to grant you permissions to create a share.
> >
> > ls -ld /var/lib/samba/usershares told me
> >> drwxrwx--T 2 root haldaemon 4096 2010-07-21 21:12 usershares/
> >
> > I consider the group haldaemon is highly suspicious since it is located
> > after user 'upload' (see below) I created for uploading. see vipw below.
> > Who created this user?
> >
> >> xiang:x:1000:1000:Xiang Liu,,,,:/home/xiang:/bin/bash
> >> privoxy:x:114:65534::/etc/privoxy:/bin/false
> >> ftp:x:1001:65534::/home/ftp:/bin/false
> >> upload:x:1002:65534::/home/upload:/bin/false
> >> haldaemon:x:115:121:Hardware abstraction layer,,,:/var/run/hald:/bin/false
> >
> > There is also a group called haldaemon in my system. (the last line in /etc/group)
> >> haldaemon:x:121:
> >
> > I have tried to find other files or directories owned by haldaemon with
> > intention to finally find out a package which causes a new user
> > haldaemon. Utilizing command 'find', I did not obtain any valuable
> > results.
> >
> >> xiang@xiang-laptop:/$ sudo find ./ -group haldaemon -print
> >> xiang@xiang-laptop:/$ sudo find ./ -user haldaemon -print
>
> The uid and gid are different from mine but haldaemon is a valid system user.
>
> Whether the haldaemon group is meant to "own" usershares, I have no
> idea. I have never used samba's usershares and have never set up samba
> through a GUI.
>
> I am pretty sure that I have seen someone post this error before and
> that the solution was to remove and add the user from the sambashare
> group before setting up a share.
>


haldaemon was introduced by hal, I found.
hal was introduced by arista, a program for video transcode. (10.04)
sudo apt-get --purge autoremove arista
will remove haldaemon in /etc/passwd and /etc/group.

But, arista is not the reason leading to fail. Installing arista(hal)
will not change the group owner of /var/lib/samba/usershares to
haldaemon.

There is a strong possibility that installing kubuntu-netbook over
ubuntu-netbook broke some setting in gnome (the fact,that I gave himself
a taste of kubuntu-netbook today, not mentioned above). Though I have
purged all related packages of kbuntu-netbook, I believe, now, it must
have dirty footprints left.

BTW, 'remove directory /var/lib/samba/usershares and reinstall samba'
has solved my problem.

Thanks, Tom

Best Regards
xiang


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-21-2010, 05:13 PM
NoOp
 
Default 'net usershare' returned error 255

On 07/21/2010 07:11 AM, listofx wrote:
> Hi,
>
> I want to share a directory to friends. I do remember that it has once
> worked before in nautilus just by right-clicking on a directory.
>
> but now, it prompts:
>
>> 'net usershare' returned error 255: net usershare: cannot open
>> usershare directory /var/lib/samba/usershares. Error
>> Permission denied
>> You do not have permission to create a usershare. Ask your
>> administrator to grant you permissions to create a share.
>>
>
> ls -ld /var/lib/samba/usershares told me
>> drwxrwx--T 2 root haldaemon 4096 2010-07-21 21:12 usershares/

$ ls -ld /var/lib/samba/usershares
drwxrwx--T 2 root sambashare 4096 2010-07-12 20:50 /var/lib/samba/usershares

$ ls -la /var/lib/samba/
total 280
drwxr-xr-x 5 root root 4096 2010-03-03 12:55 .
drwxr-xr-x 106 root root 4096 2010-07-08 17:48 ..
-rw------- 1 root root 16384 2009-10-03 20:33 account_policy.tdb
-rw------- 1 root root 77824 2009-10-03 20:33 group_mapping.ldb
-rw------- 1 root root 8192 2009-10-03 20:33 ntdrivers.tdb
-rw------- 1 root root 696 2009-10-03 20:33 ntforms.tdb
-rw------- 1 root root 20480 2010-07-21 09:27 ntprinters.tdb
-rw------- 1 root root 36864 2010-07-18 10:19 passdb.tdb
drwxr-xr-x 2 root root 4096 2009-10-03 20:33 perfmon
drwxr-xr-x 10 root root 4096 2009-10-03 20:33 printers
-rw------- 1 root root 36864 2009-11-18 19:20 registry.tdb
-rw------- 1 root root 24576 2009-10-03 20:33 secrets.tdb
-rw------- 1 root root 36864 2010-07-18 21:10 share_info.tdb
drwxrwx--T 2 root sambashare 4096 2010-07-12 20:50 usershares
-rw-r--r-- 1 root root 696 2010-03-03 12:55 winbindd_idmap.tdb

sambashare:x:132:<user1>,root,<user2>

>
> I consider the group haldaemon is highly suspicious since it is located
> after user 'upload' (see below) I created for uploading. see vipw below.
> Who created this user?
>
>> xiang:x:1000:1000:Xiang Liu,,,,:/home/xiang:/bin/bash
>> privoxy:x:114:65534::/etc/privoxy:/bin/false
>> ftp:x:1001:65534::/home/ftp:/bin/false
>> upload:x:1002:65534::/home/upload:/bin/false
>> haldaemon:x:115:121:Hardware abstraction layer,,,:/var/run/hald:/bin/false


haldaemon:x:107:114:Hardware abstraction layer,,,:/home/haldaemon:/bin/false

>
> There is also a group called haldaemon in my system. (the last line in /etc/group)
>> haldaemon:x:121:

Normal. haldaemon is used for:
$ id haldaemon
uid=107(haldaemon) gid=114(haldaemon)
groups=114(haldaemon),24(cdrom),25(floppy),46(plug dev),104(scanner),115(powerdev)


But I've no idea why your usershares are assigned to that group.

...



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-22-2010, 05:44 PM
Marlon
 
Default 'net usershare' returned error 255

Yo!!

sudo gedit /etc/samba/smb.conf

put some lines in the end

[MYFOLDER]

**path = /home/tony/shares

**guest ok = yes

**browseable = yes

**read >
**writeable = yes

**create mask = 0756

**force create mode = 0756

#///////

explanation

MYFOLDER is the name that will apear when you browse in windows...

path : is the whole path to the folder
guest ok: allows everyone to access

browseable: shows the folder when you opens the parent one
mask is the permissions that the files puted by a windows machine will put in the write mode...


after all

sudo /etc/init.d/samba restart



if occours some errors, sudo apt-get install samba


cheers


Marlon Valério
┌──────────────┐
** T0ddy Stone Brains
└──────────────┘




2010/7/21 NoOp <glgxg@sbcglobal.net>

On 07/21/2010 07:11 AM, listofx wrote:

> Hi,

>

> I want to share a directory to friends. I do remember that it has once

> worked before in nautilus just by right-clicking on a directory.

>

> but now, it prompts:

>

>> * * * * 'net usershare' returned error 255: net usershare: cannot open

>> * * * * usershare directory /var/lib/samba/usershares. Error

>> * * * * Permission denied

>> * * * * You do not have permission to create a usershare. Ask your

>> * * * * administrator to grant you permissions to create a share.

>>

>

> ls -ld /var/lib/samba/usershares told me

>> * * * * drwxrwx--T 2 root haldaemon 4096 2010-07-21 21:12 usershares/



$ ls -ld /var/lib/samba/usershares

drwxrwx--T 2 root sambashare 4096 2010-07-12 20:50 /var/lib/samba/usershares



$ ls -la /var/lib/samba/

total 280

drwxr-xr-x * 5 root root * * * *4096 2010-03-03 12:55 .

drwxr-xr-x 106 root root * * * *4096 2010-07-08 17:48 ..

-rw------- * 1 root root * * * 16384 2009-10-03 20:33 account_policy.tdb

-rw------- * 1 root root * * * 77824 2009-10-03 20:33 group_mapping.ldb

-rw------- * 1 root root * * * *8192 2009-10-03 20:33 ntdrivers.tdb

-rw------- * 1 root root * * * * 696 2009-10-03 20:33 ntforms.tdb

-rw------- * 1 root root * * * 20480 2010-07-21 09:27 ntprinters.tdb

-rw------- * 1 root root * * * 36864 2010-07-18 10:19 passdb.tdb

drwxr-xr-x * 2 root root * * * *4096 2009-10-03 20:33 perfmon

drwxr-xr-x *10 root root * * * *4096 2009-10-03 20:33 printers

-rw------- * 1 root root * * * 36864 2009-11-18 19:20 registry.tdb

-rw------- * 1 root root * * * 24576 2009-10-03 20:33 secrets.tdb

-rw------- * 1 root root * * * 36864 2010-07-18 21:10 share_info.tdb

drwxrwx--T * 2 root sambashare *4096 2010-07-12 20:50 usershares

-rw-r--r-- * 1 root root * * * * 696 2010-03-03 12:55 winbindd_idmap.tdb



sambashare:x:132:<user1>,root,<user2>



>

> I consider the group haldaemon is highly suspicious since it is located

> after user 'upload' (see below) I created for uploading. see vipw below.

> Who created this user?

>

>> * * * * xiang:x:1000:1000:Xiang Liu,,,,:/home/xiang:/bin/bash

>> * * * * privoxy:x:114:65534::/etc/privoxy:/bin/false

>> * * * * ftp:x:1001:65534::/home/ftp:/bin/false

>> * * * * upload:x:1002:65534::/home/upload:/bin/false

>> * * * * haldaemon:x:115:121:Hardware abstraction layer,,,:/var/run/hald:/bin/false





haldaemon:x:107:114:Hardware abstraction layer,,,:/home/haldaemon:/bin/false



>

> There is also a group called haldaemon in my system. (the last line in /etc/group)

>> * * * * haldaemon:x:121:



Normal. haldaemon is used for:

$ id haldaemon

uid=107(haldaemon) gid=114(haldaemon)

groups=114(haldaemon),24(cdrom),25(floppy),46(plug dev),104(scanner),115(powerdev)





But I've no idea why your usershares are assigned to that group.



...







--

ubuntu-users mailing list

ubuntu-users@lists.ubuntu.com

Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 07:29 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org